Open PIMBA opened 11 months ago
We're getting this error:
ERROR in × TypeError: Cannot read properties of undefined (reading 'tap')
│
There is another plugin for dynamic remotes that works with rspack.
import { importRemote } from "@module-federation/utilities";
const ShellService =
React.lazy(() =>
importRemote({
scope: "shell",
module: "./ShellService",
remoteEntryFileName: "remoteEntry.js",
url: () => axios.get("/remotes").then(data => data.shellRemoteURL), // e.g. http://localhost:3000
})
)
);
Wrote a plugin for that. https://www.npmjs.com/package/runtime-external-remotes-plugin
Were you able to solve this?