question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rollup-federation-demo doesn't work

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ScriptedAlchemycommented, Oct 15, 2020

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.

1reaction
davewthompsoncommented, Oct 15, 2020

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 a script 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found