Closed mrcwl closed 2 weeks ago
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
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.
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})
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?
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.
Describe the bug
host: react v18.3.1 remote: react v18.2.0 It seems that MF cannot find the react
host config
remote config
Reproduction
https://github.com/mrcwl/mf-error-test
Used Package Manager
pnpm
System Info
Validations