rollup-federation-demo doesn't work
See original GitHub issueThe Rollup demo at https://github.com/module-federation/module-federation-examples/tree/master/rollup-federation-demo doesn’t work.
The instructions state you should run yarn start
but there is no package.json
file in the directory.
In addition, manually running yarn
and yarn start
in both directories starts up servers but browsing to both URLs results in various console errors and nothing being shown.
Could you please fix this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Module Federation within the rollup bundler - GitHub
rollup -federation. A Rollup plugin which enables consumption of Federated Modules. This plugin essentially reproduces the functionality of Webpack's ...
Read more >Module Federation in Rollup.JS - Medium
Module Federation in Rollup.JS. With Webpack 5 Module Federation revolutionizing how we think about JavaScript architecture on large scales, I ...
Read more >Module Federation - webpack
The container tries to provide shared modules, but if the shared module has already been used, a warning and the provided shared module...
Read more >Angular dynamic modules at runtime with Module Federation
The AppModule of your remote app should be your "demo" or self-deployed landscape. You will import modules and providers to establish a ...
Read more >Aha! Roadmaps | Roll-up releases and roll-up schedules
It can be tempting to divide Aha! Roadmaps workspaces into components based on how your team's development resources work, and then use a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah it would be great to see how it was fixed. I can apply this back to the rollup plugin / I’ll accept a pr to that plugin directly if you know what needs to be done.
I actually managed to hack together a solution by extending the
rollup-federation
plugin to generate the same code that the Webpack module federation demo does - it creates ascript
tag and then waits until the script is dynamically loaded into the DOM before it then resolves the promise that the__federation__
runtime waits on. I’ll talk to my corporate counsel today and see if I can raise a MR with the changes.