We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: