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
System: Windows 10 Browser: Google Chrome npmPackages: "devDependencies": { "@rsbuild/core": "^0.3.11", "@rsbuild/plugin-react": "^0.3.11" }
Module-federation example doesn't work outside of the main project.
The issue concerns of the code from your repo.
pnpm run dev
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Try Rsbuild 0.4.0
It works. Thank you.
No branches or pull requests
Version
Details
Module-federation example doesn't work outside of the main project.
Reproduce link
The issue concerns of the code from your repo.
Reproduce Steps
pnpm run dev
in the remote folder (this project will run perfectly).pnpm run dev
in the host folder (this one throws an error:error Compile error:
Failed to compile, check the errors for troubleshooting.
File: ./src/App.js
× Resolve error: Can't resolve 'remote/Button' in 'D:\Dev\Education\ModuleFederation\module-federation\host\src'
╭─[1:1]
1 │ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
2 │ import React from "react";
3 │ const RemoteButton = /#PURE/ React.lazy(()=>import("remote/Button"));
· ───────────────────────
4 │ _c = RemoteButton;
5 │ const App = ()=>/#PURE/ _jsxDEV("div", {
╰────
)
The text was updated successfully, but these errors were encountered: