Angular 13& HTTPD24-无法加载模块脚本:预期JavaScript模块脚本,但服务器以“摩尔类型”响应“”
我已经将应用程序从Angular 10迁移到Angular 13,然后开始在浏览器控制台中遇到此错误。我尝试了Stackoverflow中提到的大多数解决方案。但是没有运气。由于代码与Angular 10正确地工作,但是迁移到13后,我会在浏览器中遇到MIME错误。请建议。提前致谢!
I have migrated my application from angular 10 to angular 13 and I started getting this error in browser console. I have tried most of the solution mentioned in the stackoverflow. But there is no luck. Since code was working correctly with angular 10 but after migrating to 13 I am getting MIME error in browser. Please suggest. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用Express运行生产应用程序,请确保指向正确的构建目录
Make sure you are pointing to the correct build directory if you are using express to run your production app