Git Product home page Git Product logo

Comments (5)

mrcwl avatar mrcwl commented on July 16, 2024 1

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:

  1. pnpm dev
  2. Make a change in one of the apps
  3. 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.
image

from core.

elliotwestlake avatar elliotwestlake commented on July 16, 2024

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:

  1. pnpm dev
  2. Make a change in one of the apps
  3. Refresh page

from core.

ScriptedAlchemy avatar ScriptedAlchemy commented on July 16, 2024

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 core.

mrcwl avatar mrcwl commented on July 16, 2024

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 core.

ScriptedAlchemy avatar ScriptedAlchemy commented on July 16, 2024

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 core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.