-
Bug reportWhat is the current behavior? remote appwhen using module federation webpack will generate:
this remote app this app running in new ModuleFederationPlugin({
name: 'remoteEntry',
library: { type: 'window', name: 'remoteEntry' },
filename: 'static/remoteEntry.js',
exposes: {
'./entry': './src/remoteEntry',
},
}), host appconfigurate remoteEntry.js address config like: new ModuleFederationPlugin({
name: 'host',
remotes: {
remoteEntry:'portalRemote@http://localhost:10000/static/remoteEntry.js'
},
}), visit host app chrome console will print remoteEntry's chunks will 404 beacause it's will load from If the current behavior is a bug, please provide the steps to reproduce. What is the expected behavior? actually expect if i config host app like if specified remote url, the remote artifacts should read from remote, host app may not have remote app files. if this is not a bug, would give me some suggestion or explain how to workaround this screenshots |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please provide reproducible test repo using github, I will show how to fix it |
Beta Was this translation helpful? Give feedback.
i solved it by using publicpath
auto