Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/html"

一 问题

Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

 

二 问题原因

页面中引入js,复制这个js链接后发现这个js路径是404,空白页面,其实是这个文件404

 

image

 

posted @ 2026-01-17 14:00  qx和世界  阅读(1)  评论(0)    收藏  举报