module-federation-examples
module-federation-examples copied to clipboard
Implementation examples of module federation , by the creators of module federation
Is there a way we can have React 19 host with React 18 remote? I tried upgrading basic-host-remote/app1 to react 19, but getting error.  
We are currently in the process of migrating our client-side rendered (CSR) applications to server-side rendering (SSR). As a first step, we are planning to migrate the host container to...
@module-federation/nextjs-mf breaks from version 8.8.24 and onwards. It works for v8.8.23 and below. Here is the error >react.development.js:1487 Uncaught TypeError: Cannot read properties of null (reading 'useLayoutEffect') at exports.useLayoutEffect (react.development.js:1487:33)...
// You can use the runtime to load modules without depending on the build plugin // When not using the build plugin, shared dependencies cannot be automatically configured import {...
```json "dependencies": { "@module-federation/nextjs-mf": "8.8.21", "@module-federation/runtime": "0.11.2", "axios": "1.7.7", "next": "12.3.1", "prop-types": "15.8.1", "react": "17.0.2", "react-dom": "17.0.2" } ``` ```javascript // next.config.js const NextFederationPlugin = require("@module-federation/nextjs-mf"); module.exports = { reactStrictMode:...
I'm looking at Practical Module Federation Book mentioned in the readme.md and see it was released 5 years ago and lots of things changed since then. I'm learning about the...
I'm exploring the react-storybook sample, trying to run a Storybook instance that renders a story from a remote module. I can successfully run the basic host and remote applications included...
After installing the project dependencies, in the directory of examples\vue3-demo-esm-shared-store, execute build:remotes & serve:remotes to start the remote side. Then, run dev:hosts and access port 5000. When accessing http://localhost:5001/assets/__federation_shared_myStore-ed6e87a0.js, a...