-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I connect an application with a newer version of react? #220
Comments
Hi @ohmygodismax |
Hi @gioboa |
@ohmygodismax I didn't have the time to look at it. Did you find a solution for that? |
@gioboa I was unable to use 2 versions of react with an older one in the host application. So far, I've settled on the option where the connection is via a singletone with a warning that the host application has an older version. |
I see, is your scenario working with webpack / rspack? |
When the module is dynamically connected via @module-federation/enhanced/runtime,, at the moment, when I try to use 2 different instances of the react library (an older version on the host application), I get an error:
But the module federation instance shows that 2 react instances have been loaded:
The problem is solved when using singleton, but this is not the behavior I expect.
The text was updated successfully, but these errors were encountered: