Closed nicotu01 closed 2 weeks ago
I works with @module-federation/runtime@0.1.16
@nicotu01 are you using ESM modules?
Yes, I'm using ESM modules.
In project example, the host and the remote turns on Vite@5.2.0 with type module.
And I load remote like this :
init({
name: "host",
remotes: [
{
type: "esm",
name: "remote",
entry: "http://localhost:4173/assets/remoteEntry.js",
},
],
});
loadRemote("remote/Counter");
Ahh that's the problem. Esm objects cannot be modified. I have opened a pr that should help
Been merged, should show up in next release
Describe the bug
When loading remote, I have the error below :
Reproduction
https://github.com/nicotu01/module-federation-runtime-error
Used Package Manager
npm
System Info
Validations