我有一个Angular 8应用程序,它托管在Firebase上,并由Go-Astilectron(Astilectron 0.30和Electron 4.0.1)在客户端运行。
问题是,在我的某些客户端中,我遇到以下错误(它发生在加载Angular代码时,因此Astilectron只显示空白页面):
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
main-es2015.5a90aaf45a8347384655.js:1
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
在某些情况下,我们可以通过重新加载页面来解决这个问题,但在其他情况下,无论我做什么,页面都无法加载。
我进行了一些研究,并发现这可能与应用程序注册服务工作者有关,但这并不是我的情况。
此外,由于我正在使用Firebase Hosting提供静态站点,我没有进行任何MIME配置。
有人能帮帮我吗?
<base href="/">
。我会检查受影响机器的注册表。 - Felipe