Giter Club home page Giter Club logo

node-mf's People

Contributors

telenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

node-mf's Issues

Consider a node-fetch option

when passing larger chunks, sometimes the http request fails to reconstruct a readable stream back together.
If i use node-fetch, it seems to be a little more reliable in fetching text and executing it afterwards

Question: Angular Universal

Have you explored using this with angular universal and express? Lack of SSR support is the one thing stopping us from using module federation.

NodeAsyncHttpRuntime compatibility with NextJS

Hello,

First, thank you for you work, that is great ๐Ÿ‘

Do you think NodeAsyncHttpRuntime could be made easily compatible with NextJS in case we want to use NextJS to both expose and consume modules that will be rendered on server side?

promiseBaseURI is not defined

the line 205 in ReadFileChunkLoadingRuntimeModule.js should be changed to:
`rpcLoad( promiseBaseURI ? await promiseBaseURI : baseURI }, ${

Webpack build error

I took example code and tried to modify the component, but after I did it I get such an error

webpack-cli] TypeError: The 'compilation' argument must be an instance of Compilation at getCompilationHooks (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/@telenko/node-mf/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:125:10) at /Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/@telenko/node-mf/node_modules/webpack/lib/javascript/CommonJsChunkFormatPlugin.js:43:19 at Hook.eval [as call] (eval at create (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1) at Hook.CALL_DELEGATE [as _call] (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/tapable/lib/Hook.js:14:14) at Compiler.newCompilation (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/webpack/lib/Compiler.js:1043:30) at /Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/webpack/lib/Compiler.js:1088:29 at Hook.eval [as callAsync] (eval at create (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/tapable/lib/Hook.js:18:14) at Compiler.compile (/Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/webpack/lib/Compiler.js:1083:28) at /Users/artemyeldinov/Documents/ProjectsEpam/kf-ng-web-light/node_modules/webpack/lib/Compiler.js:508:12 error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Dup, but with more detail: Shared module is not available for eager consumption

I ran into this issue when cloning the example repo + running through the readme steps.

tried with:
node v14.19.0 (npm v6.14.16)
node v16.5.0 (npm v7.19.1)

npm list dumps:
host:

[email protected]
โ”œโ”€โ”€ @telenko/[email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ””โ”€โ”€ [email protected]

remote:

[email protected]
โ”œโ”€โ”€ @babel/[email protected]
โ”œโ”€โ”€ @babel/[email protected]
โ”œโ”€โ”€ @material-ui/[email protected]
โ”œโ”€โ”€ @telenko/[email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ””โ”€โ”€ [email protected]

@telenko any insights or ideas what I might have wrong here?

image

SSR stuck after remote rebuilds

Hi there, thank you for the work you've done putting this together. I was just wondering if you've run into issues where your Next.js app gets "stuck" with an outdated remote via SSR?

For example:

  • website 1 (Next.js) consumes a remote
  • website 2 (remote) exposes a module

Scenario:

  • Both sites build / deploy
  • Website 2 makes a change to its exposed component, then rebuilds / redeploys
  • Changes are not reflected on website 1 via SSR (changes become visible on client - after some flickering)

Supporting ES5 module output (.mjs)

Is there a way to generate code which is compatible with ES5?
Currently the code generated by the plugin uses require to link http(s), vm, etc. even when module output is explicitly enabled (output.module, experiments.outputModule, output.libraryTarget, output.chunkFormat, etc.). I believe that it is not a correct behaviour, as require is not available in the module context.
On top of that, the plugin also uses exports, __dirname and similar globals, which is also problematic.

The reason that modules support is needed is that new Nuxt 3 uses modules output format and our company is interested in integrating Nuxt and Module Federation.
I am willing to work on adding this feature to the plugin if my help is needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.