How can I connect an application with a newer version of react?
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 problem is solved when using singleton, but this is not the behavior I expect.
Hi @ohmygodismax What's your expectation? Can you create a basic repo for this?
Hi @gioboa Yes, something like this https://github.com/ohmygodismax/mf-vite-example
@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?
As there's been no activity for 30 days, this issue has been flagged as stale. If you'd like it to remain open, please add a comment within the next 7 days. Thank you.