Gin读取Vue 3编译文件报错
作者:互联网
简介:
Vue 3项目编译npm run build 编译后,Gin读取并运行,访问页面一片空白,并报以下错误:
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.
分析:
本地开发环境是Win 10, 偶尔发现在Linux上编译并运行没有这个错误,一切正常。
标签:Vue,script,module,编译,MIME,Gin,报错,type 来源: https://www.cnblogs.com/9527l/p/16212940.html