Open DanielSegal1 opened 1 month ago
Hi, thanks for the feedback, can you create a basic example to clone please? In this way we will tackle the problem easily
uploaded the repo to dynamic-module-federation
you need to install node modules inside each of host and vite-guest dirs,
run (inside vite-guest): npm run build, npm run serve
run (inside host): npm run dev
I'm looking at this issue and I have a different error though. I'm looking for a webpack bridge-react project to clone :eyes: and migrate to Vite.
what error are you getting?
the remote has the right name though. So I looking forward to migrating a working webpack bridge-react project, but I can't find ones. Can you help me with that?
I pushed a change to my repo in which I use import('vite_guest_app/Button')
instead of loadRemote('vite_guest_app/Button')
and it seems to go back into the error which I described first.
Right now Im not so sure anymore that react-bridge is what I need. maybe you can advise something else for my use case (unrelated to this issue that may needs a solution anyway).
My use case is I want to load react version X component in a host with react version Y.
thanks
problem when using with vite-plugin-react-swc
hi. I'm currently trying to build a vite host + remote with this plugin and @module-federation/bridge-react, so I can load a react 17 remote component into a react 18 host. unfortunately I get the following error:
the vite.config of the remote is:
and the one of the host is:
the way I expose and consume the component is via @module-federation/bridge-react, and it looks like the following: expose (at remote):
consume (at host):
any idea if I'm doing something wrong or if this plugin does not yet supports what I'm trying to achieve?