记录一下使用PDFJS遇到的坑
2024-09-06在引用PDFjs的过程中,遇到了一下坑,这这里记录一下。列如:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.和禁用按钮功能等..._pdf.js
警告 UnExpected any. Specify a different type
2024-08-04"@typescript-eslint/no-explicit-any": ["off"]_unExpected any. specify a different type
vue3 gzip nginx 部署 静态文件被识别成text/html的问题
2024-04-03Failed 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 HTML spec.出现该问题的场景为解决vue gzip打包部署,nginx配置 try_files $uri $uri/ @router_nginx代理vue项目请求content-type: text/html
vite打包问题解决 a JavaScript module script but the server responded with a MIME type of “text/html“.
2024-02-08前端遇到这种内网不报错上外网就报错的问题,只因本上可以确认是打包和路径的问题,检查自己的vite.config.ts。我用的是uniapp vue3 ts vite的脚手架。原因是不小心加了base,把base注释掉就可以了。_打包好Expected a javascript module script but the server responded with a mi