You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do NOT ignore this template or your issue will have a very high chance to be closed without comment.
Describe the bug
when referencing css and js files in index.html, there will be 500 internam error responsed from server when there's sourcemap files relate with them, both in the server console and the browser console. but, in fact, the path is correct, and the file is accessible from browser.
index.html
log in server console:
log in browser console:
the sourcemap is accessible:
related source code hinted from the server console (compiled, from node_modules):
Reproduction
Please provide a link to a repo that can reproduce the problem you ran into.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will be closed immediately.
System Info
requiredvite version: v0.20.3
required Operating System: win10 v2004 + wsl2
required Node version: v12.14
Optional:
npm/yarn version
Installed vue version (from yarn.lock or package-lock.json)
Installed @vue/compiler-sfc version
Logs (Optional if provided reproduction)
Run vite or vite build with the --debug flag.
Provide the error log here.
when run with --debug, it says:
zwm@x1c:~/workspace/qumake$ npm run dev
>[email protected] dev /home/zwm/workspace/qumake
> vite --debug
vite v0.20.3
vite:config env mode: development +0ms
vite:config env: {} +1ms
vite:config config resolved in 94ms +2ms
vite:optimize Hash is consistent. Skipping. Use --force to override. +0ms
Dev server running at:
> Network: http://192.168.1.149:3000/
> Local: http://localhost:3000/
vite:server server ready in 369ms. +0ms
vite:hmr ws client connected +0ms
vite:hmr ws client connected +19ms
vite:hmr ws client connected +29ms
vite:hmr ws client connected +37ms
vite:hmr ws client connected +19ms
vite:hmr / imports /blockly/blockly.min.js +19ms
vite:hmr / imports /blockly/browser.js +1ms
vite:rewrite /: no imports found. +0ms
vite:hmr / imports /monaco/min/vs/loader.js +4ms
vite:hmr / imports /monaco/min/vs/editor/editor.main.nls.js +2ms
vite:hmr / imports /monaco/min/vs/editor/editor.main.js +1ms
vite:hmr / imports /main.ts +1ms
vite:rewrite (skipped) / +7ms
vite:hmr ws client connected +6ms
vite:hmr ws client connected +18ms
vite:rewrite /: serving from cache +0ms
vite:rewrite (skipped) / +35ms
vite:hmr ws client connected +18ms
vite:hmr ws client connected +30ms
vite:rewrite /: serving from cache +49ms
vite:rewrite (skipped) / +50ms
vite:hmr ws client connected +25ms
vite:rewrite /: serving from cache +19ms
vite:rewrite (skipped) / +16ms
vite:hmr ws client connected +20ms
vite:hmr ws client connected +20ms
vite:hmr ws client connected +15ms
vite:rewrite /: serving from cache +53ms
vite:rewrite (skipped) / +53ms
vite:hmr ws client connected +17ms
vite:hmr ws client connected +16ms
vite:rewrite /: serving from cache +45ms
vite:rewrite (skipped) / +45ms
vite:hmr ws client connected +20ms
vite:rewrite /: serving from cache +13ms
vite:rewrite (skipped) / +13ms
vite:hmr ws client connected +14ms
vite:rewrite /: serving from cache +12ms
vite:rewrite (skipped) / +11ms
vite:hmr ws client connected +16ms
vite:rewrite /: serving from cache +14ms
vite:rewrite (skipped) / +15ms
vite:hmr ws client connected +14ms
vite:rewrite /: serving from cache +14ms
vite:rewrite (skipped) / +14ms
vite:hmr ws client connected +16ms
vite:rewrite /: serving from cache +15ms
vite:rewrite (skipped) / +15ms
vite:hmr ws client connected +17ms
vite:rewrite /: serving from cache +16ms
vite:rewrite (skipped) / +16ms
vite:hmr ws client connected +15ms
vite:rewrite /: serving from cache +15ms
vite:rewrite (skipped) / +14ms
vite:hmr ws client connected +18ms
vite:rewrite /: serving from cache +19ms
vite:rewrite (skipped) / +20ms
vite:hmr ws client connected +19ms
vite:rewrite /: serving from cache +20ms
vite:rewrite (skipped) / +19ms
vite:hmr ws client connected +17ms
vite:rewrite /: serving from cache +17ms
vite:rewrite (skipped) / +18ms
vite:hmr ws client connected +14ms
vite:rewrite /: serving from cache +15ms
vite:rewrite (skipped) / +15ms
vite:hmr ws client connected +17ms
vite:rewrite /: serving from cache +16ms
vite:rewrite (skipped) / +16ms
vite:hmr ws client connected +15ms
vite:rewrite /: serving from cache +15ms
vite:rewrite (skipped) / +14ms
vite:hmr ws client connected +17ms
vite:rewrite /: serving from cache +16ms
vite:rewrite (skipped) / +17ms
vite:rewrite /: serving from cache +12ms
vite:rewrite (skipped) / +11ms
vite:hmr ws client connected +18ms
vite:hmr ws client connected +14ms
vite:rewrite /: serving from cache +23ms
vite:rewrite (skipped) / +24ms
vite:hmr ws client connected +17ms
vite:rewrite /: serving from cache +14ms
vite:rewrite (skipped) / +14ms
vite:rewrite /: serving from cache +13ms
vite:rewrite (skipped) / +12ms
vite:rewrite (skipped) /style/ress.css +262ms
vite:rewrite (skipped) /style/color.css +3ms
vite:rewrite (skipped) /style/icons/css/materialdesignicons.min.css +5ms
vite:rewrite (skipped) /monaco/min/vs/editor/editor.main.css +25ms
vite:rewrite /public/blockly/browser.js: no imports found. +44ms
vite:rewrite /public/blockly/blockly.min.js: no imports found. +34ms
vite:rewrite /public/monaco/min/vs/loader.js: no imports found. +22ms
vite:rewrite /public/monaco/min/vs/editor/editor.main.nls.js: no imports found. +5ms
vite:rewrite /main.ts: rewriting +29ms
vite:rewrite "vue" -->"/@modules/vue.js" +6ms
vite:hmr /main.ts imports /@modules/vue.js +453ms
vite:rewrite "./App.vue" -->"/App.vue" +3ms
vite:hmr /main.ts imports /App.vue +2ms
vite:rewrite (skipped) /vite/hmr +45ms
vite:rewrite /public/monaco/min/vs/editor/editor.main.js: no imports found. +60ms
TypeError: Cannot read property 'includes' of undefined
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginServeStatic.js:25:48
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginAssets.js:11:16
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginJson.js:6:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginEsbuild.js:12:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginCss.js:17:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
TypeError: Cannot read property 'includes' of undefined
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginServeStatic.js:25:48
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginAssets.js:11:16
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginJson.js:6:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginEsbuild.js:12:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginCss.js:17:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
TypeError: Cannot read property 'includes' of undefined
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginServeStatic.js:25:48
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginAssets.js:11:16
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginJson.js:6:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginEsbuild.js:12:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginCss.js:17:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
vite:hmr ws client connected +529ms
TypeError: Cannot read property 'includes' of undefined
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginServeStatic.js:25:48
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginAssets.js:11:16
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginJson.js:6:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginEsbuild.js:12:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
at /home/zwm/workspace/qumake/node_modules/vite/dist/server/serverPluginCss.js:17:15
at dispatch (/home/zwm/workspace/qumake/node_modules/koa-compose/index.js:42:32)
vite:resolve (optimized) vue.js -> node_modules/.vite_opt_cache/vue.js +0ms
vite:sfc /home/zwm/workspace/qumake/App.vue parsed in 17ms. +0ms
vite:rewrite /App.vue: rewriting +469ms
vite:rewrite "vue" -->"/@modules/vue.js" +1ms
vite:hmr /App.vue imports /@modules/vue.js +47ms
vite:rewrite "./components/ZLayout.vue" -->"/components/ZLayout.vue" +3ms
vite:hmr /App.vue imports /components/ZLayout.vue +2ms
vite:rewrite "./components/ZPreview.vue" -->"/components/ZPreview.vue" +1ms
vite:hmr /App.vue imports /components/ZPreview.vue +1ms
vite:rewrite "./store.ts" -->"/store.ts" +1ms
vite:hmr /App.vue imports /store.ts +1ms
vite:rewrite /@modules/vue.js: no imports found. +18ms
vite:sfc /home/zwm/workspace/qumake/components/ZPreview.vue parsed in 18ms. +49ms
vite:rewrite /components/ZPreview.vue: rewriting +26ms
vite:rewrite "vue" -->"/@modules/vue.js" +3ms
vite:hmr /components/ZPreview.vue imports /@modules/vue.js +47ms
vite:rewrite "./ZPhone.vue" -->"/components/ZPhone.vue" +2ms
vite:hmr /components/ZPreview.vue imports /components/ZPhone.vue +2ms
vite:sfc /home/zwm/workspace/qumake/components/ZLayout.vue parsed in 18ms. +29ms
vite:rewrite /components/ZLayout.vue: rewriting +22ms
vite:rewrite "./ZMenuCourse.vue" -->"/components/ZMenuCourse.vue" +1ms
vite:hmr /components/ZLayout.vue imports /components/ZMenuCourse.vue +22ms
vite:rewrite "./ZMenuUser.vue" -->"/components/ZMenuUser.vue" +1ms
vite:hmr /components/ZLayout.vue imports /components/ZMenuUser.vue +2ms
vite:sfc /home/zwm/workspace/qumake/App.vue parse cache hit +7ms
vite:sfc /App.vue style compiled in 25ms +29ms
vite:rewrite (skipped) /App.vue?type=style&index=0 +34ms
vite:sfc /home/zwm/workspace/qumake/App.vue parse cache hit +2ms
vite:sfc /App.vue template compiled in 25ms. +26ms
vite:rewrite (skipped) /App.vue?type=template +28ms
vite:sfc /home/zwm/workspace/qumake/components/ZPhone.vue parsed in 21ms. +27ms
vite:rewrite /components/ZPhone.vue: rewriting +30ms
vite:rewrite "vue" -->"/@modules/vue.js" +3ms
vite:hmr /components/ZPhone.vue imports /@modules/vue.js +94ms
vite:sfc /home/zwm/workspace/qumake/components/ZPreview.vue parse cache hit +9ms
vite:sfc /components/ZPreview.vue style compiled in 16ms +17ms
vite:rewrite (skipped) /components/ZPreview.vue?type=style&index=0 +20ms
vite:sfc /home/zwm/workspace/qumake/components/ZPreview.vue parse cache hit +3ms
vite:sfc /components/ZPreview.vue template compiled in 15ms. +16ms
vite:rewrite (skipped) /components/ZPreview.vue?type=template +19ms
vite:rewrite /store.ts: rewriting +1ms
vite:rewrite "vue" -->"/@modules/vue.js" +2ms
vite:hmr /store.ts imports /@modules/vue.js +42ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuCourse.vue parsed in 18ms. +33ms
vite:rewrite /components/ZMenuCourse.vue: rewriting +30ms
vite:rewrite "./element/Triangle.vue" -->"/components/element/Triangle.vue" +1ms
vite:hmr /components/ZMenuCourse.vue imports /components/element/Triangle.vue +31ms
vite:rewrite "./ZStepListItem.vue" -->"/components/ZStepListItem.vue" +0ms
vite:hmr /components/ZMenuCourse.vue imports /components/ZStepListItem.vue +1ms
vite:sfc /home/zwm/workspace/qumake/components/ZLayout.vue parse cache hit +4ms
vite:sfc /components/ZLayout.vue style compiled in 15ms +16ms
vite:rewrite (skipped) /components/ZLayout.vue?type=style&index=0 +19ms
vite:sfc /home/zwm/workspace/qumake/components/ZLayout.vue parse cache hit +2ms
vite:sfc /components/ZLayout.vue template compiled in 15ms. +21ms
vite:rewrite (skipped) /components/ZLayout.vue?type=template +25ms
vite:sfc /home/zwm/workspace/qumake/components/ZPhone.vue parse cache hit +4ms
vite:sfc /components/ZPhone.vue style compiled in 18ms +20ms
vite:rewrite (skipped) /components/ZPhone.vue?type=style&index=0 +22ms
vite:sfc /home/zwm/workspace/qumake/components/ZPhone.vue parse cache hit +2ms
vite:sfc /components/ZPhone.vue template compiled in 19ms. +19ms
vite:rewrite (skipped) /components/ZPhone.vue?type=template +21ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuUser.vue parsed in 15ms. +23ms
vite:rewrite /components/ZMenuUser.vue: rewriting +24ms
vite:rewrite "vue" -->"/@modules/vue.js" +1ms
vite:hmr /components/ZMenuUser.vue imports /@modules/vue.js +111ms
vite:sfc /home/zwm/workspace/qumake/components/element/Triangle.vue parsed in 15ms. +21ms
vite:rewrite /components/element/Triangle.vue: rewriting +19ms
vite:rewrite no imports rewritten. +1ms
vite:sfc /home/zwm/workspace/qumake/components/ZStepListItem.vue parsed in 16ms. +20ms
vite:rewrite /components/ZStepListItem.vue: rewriting +20ms
vite:rewrite no imports rewritten. +0ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuCourse.vue parse cache hit +4ms
vite:sfc /components/ZMenuCourse.vue style compiled in 10ms +20ms
vite:rewrite (skipped) /components/ZMenuCourse.vue?type=style&index=0 +25ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuCourse.vue parse cache hit +7ms
vite:sfc /components/ZMenuCourse.vue template compiled in 17ms. +18ms
vite:rewrite (skipped) /components/ZMenuCourse.vue?type=template +23ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuUser.vue parse cache hit +1ms
vite:sfc /components/ZMenuUser.vue style compiled in 3ms +4ms
vite:rewrite (skipped) /components/ZMenuUser.vue?type=style&index=0 +7ms
vite:sfc /home/zwm/workspace/qumake/components/ZMenuUser.vue parse cache hit +6ms
vite:sfc /components/ZMenuUser.vue template compiled in 33ms. +35ms
vite:rewrite (skipped) /components/ZMenuUser.vue?type=template +39ms
vite:sfc /home/zwm/workspace/qumake/components/element/Triangle.vue parse cache hit +3ms
vite:sfc /components/element/Triangle.vue style compiled in 1ms +2ms
vite:rewrite (skipped) /components/element/Triangle.vue?type=style&index=0 +5ms
vite:sfc /home/zwm/workspace/qumake/components/element/Triangle.vue parse cache hit +3ms
vite:sfc /components/element/Triangle.vue template compiled in 3ms. +12ms
vite:rewrite (skipped) /components/element/Triangle.vue?type=template +16ms
vite:sfc /home/zwm/workspace/qumake/components/ZStepListItem.vue parse cache hit +5ms
vite:sfc /components/ZStepListItem.vue style compiled in 8ms +9ms
vite:rewrite (skipped) /components/ZStepListItem.vue?type=style&index=0 +13ms
vite:sfc /home/zwm/workspace/qumake/components/ZStepListItem.vue parse cache hit +7ms
vite:sfc /components/ZStepListItem.vue template compiled in 10ms. +11ms
vite:rewrite (skipped) /components/ZStepListItem.vue?type=template +18ms
vite:rewrite (skipped) /style/icons/fonts/materialdesignicons-webfont.woff2?v=5.3.45 +95ms
vite:rewrite (skipped) /media/avatar.jpg +10ms
The text was updated successfully, but these errors were encountered:
Describe the bug
when referencing css and js files in
index.html
, there will be500 internam error
responsed from server when there's sourcemap files relate with them, both in the server console and the browser console. but, in fact, the path is correct, and the file is accessible from browser.index.html
log in server console:
log in browser console:
the sourcemap is accessible:
related source code hinted from the server console (compiled, from
node_modules
):Reproduction
Please provide a link to a repo that can reproduce the problem you ran into.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will be closed immediately.
System Info
vite
version: v0.20.3vue
version (fromyarn.lock
orpackage-lock.json
)@vue/compiler-sfc
versionLogs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.when run with
--debug
, it says:The text was updated successfully, but these errors were encountered: