控制台出现“The script has an unsupported MIME type ('text/html')”报错

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-29 15:24   43   0

有时候开发React或者Vue项目时,本地运行访问时,会莫名出现报错如下:

The script has an unsupported MIME type ('text/html')

这是由于无意中开启了service Workesr 功能,只要关掉即可解决。

步骤:

开发者工具 -> Application -> service Workers -> 展开Service workers from other domains -> 找到localhost域名项 -> 在右侧Unrigister注销 -> 最后刷新之前的项目页面即可。

转载于:https://www.cnblogs.com/hughes5135/p/10635089.html

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP