Open jtan80813 opened 4 months ago
Try adding shared in vite.config.ts Ex:
shared
vite.config.ts
federation({ name: "host-app", remotes: { remoteRemixApp: "http://localhost:3010/assets/remoteEntry.js", }, shared: ["react", "react-dom"], }),
Should not output react-dom cannot be external
react-dom
When building it, it errors out saying like Entry module "react-dom" cannot be external.
Entry module "react-dom" cannot be external.
Versions
Steps to reproduce
Try adding
shared
invite.config.ts
Ex:What is Expected?
Should not output
react-dom
cannot be externalWhat is actually happening?
When building it, it errors out saying like
Entry module "react-dom" cannot be external.