WebPack模块联合会错误ScriptexternAlloaderror:加载脚本失败
注意:我尝试直接在浏览器 https:// localhost:5007/accom-web/dist/dist/js/assets/browsers- bundle/removeentrytest.js ,我为远程entrytest.js文件提供服务。
这是我在主机中的Webconfig。
这是远程应用程序的WebConfig。
远程应用程序的优化配置如下。
optimization: {
runtimeChunk: false,
emitOnErrors: true,
splitChunks: {
minSize: 256000,
minChunks: 1,
maxAsyncRequests: 10,
automaticNameDelimiter: '-',
cacheGroups: {
chunks: 'initial',
.....
},
},
.....
}
我也查看了有关此问题的问题,但没有多大帮助。
https://github.com/mmodule-federation/module-federation/module-federation-examples /eskoes/307 https://github.com/module.com/module-federation/module-federation-examples- /esseage/1273 https://github.com/module.com/module-federation/module-federation-examples /eskoes/692
对此如何解决该建议?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在遥控器上指定共享依赖项也有类似的问题。在审查了您的GitHub参考文献后,我最终不得不禁用Splitchucks。我确定您也尝试了这一点,但是这使我的遥控器再次工作。
I had a similar issue with specifying shared dependencies on a remote. I ended up having to disable splitChucks after reviewing your Github references. I'm sure you tried that as well but this got my remote working again recently.
在遥控器中将URL
HTTPS
更改为http
。它对我有用Change the URL
https
tohttp
in remotes. It works for me