yangzongzhuan / RuoYi-Vue3

:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue3 & Vite、Element Plus 的前后端分离权限管理系统
http://ruoyi.vip
MIT License
4.82k stars 1.96k forks source link

部署前端项目出现了Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. #103

Closed ZHChan-2019 closed 1 year ago

ZHChan-2019 commented 2 years ago

部署前端项目出现了Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.这个错误,查了很多资料都没有办法解决

ZHChan-2019 commented 2 years ago

nginx路径都配置没有问题,可是就是出现了这个问题

HHDaddy commented 2 years ago

遇到类似的问题,搞不定。Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". strict MIMe type checking is enforced for module scripts per HTPL spec. Typerror: Failed to fetch dynamiclly imported module: 部署正常,当时访问页面静置一段时间会出现

lzc-2019 commented 1 year ago

有解决方法了么

yangzongzhuan commented 1 year ago

项目技术相关的问题请到 https://gitee.com/y_project/RuoYi-Vue/issues 提问,同时提供出能复现问题步骤。