Comments (5)
I'm also seeing the same issue, although they all have the same version :(
Here is my reproduction: https://github.com/elliotwestlake/rsbuild-react-issue
You can reproduce by following these steps:
pnpm dev
- Make a change in one of the apps
- Refresh page
Yes, when I set the host and remote react version to 18.3.1, I modify the component code in the host and refresh the page, and the same error occurs.
from universe.
I'm also seeing the same issue, although they all have the same version :(
Here is my reproduction: https://github.com/elliotwestlake/rsbuild-react-issue
You can reproduce by following these steps:
pnpm dev
- Make a change in one of the apps
- Refresh page
from universe.
set it as a singleton, otherwise it will use strict version.
you can also look at my cra example on mf-examples, you can set in rsbuild react plugin ({splitting: {router: false, react: false})
from universe.
set it as a singleton, otherwise it will use strict version.
you can also look at my cra example on mf-examples, you can set in rsbuild react plugin ({splitting: {router: false, react: false})
i find the same issues in your cra example when i update @rsbuild/core and @rsbuild/plugin-react to version 0.7.8.
i don't understand what static version means and how can i use different versions of react in my host and remote?
from universe.
React is a singleton, only one can be loaded at runtime.
If you want multiple versions of react then you will need to mount them as apps on divs, not use them as JSX.
from universe.
Related Issues (20)
- dts for entries exposed with aliases are not emitting HOT 1
- Can't create Error Fallback when any Remote fails. HOT 7
- Chrome Extension is not working due to empty `moduleInfo` HOT 3
- web worker error in host HOT 2
- Exact matching alias does not work as expected in bridge webpack plugin HOT 2
- Shared dependency version cannot be resolved if installed at root of a monorepo
- Spaces in path to project with @module-federation/next-mf result in `Unterminated string in JSON at position` and HookWebpackError errors HOT 8
- how can I use in vue3 ts template HOT 5
- Cannot use vue2.7 lifecycle hook through module federation
- [CORS]: @module-federation/nextjs-mf HOT 3
- Cannot use shared module in .mjs file correctly HOT 4
- Adding element to page with id that matches remote's name causes `TypeError: remoteEntryExports.init is not a function` HOT 2
- External modules not shared HOT 4
- [MF Plugin] "promise new Promise" syntax doesn't work with @ char in it HOT 4
- Entry runtime miss function "O" HOT 5
- esbuild plugin error: Top-level await is not available in the configured target environment HOT 1
- @module-federation/nextjs-mf version 8.4.0 breaks API routes
- Having production error - TypeError: (void 0) is not a function at .next/server/webpack-api-runtime.js:1:199
- Nextjs plugin doesn't work unless the "unsafe-eval" CSP header is set
- Vue Bridge package lacks `dist` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universe.