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
[vite] Internal server error: Unexpected string
Plugin: vite:css
File: /home/marius/work/vue-template/src/App.vue?vue&type=style&index=0&lang.scss
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at importFresh (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:5931:47)
at loadJs (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15294:18)
at Explorer.loadFileContent (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15777:32)
at Explorer.createCosmiconfigResult (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15782:36)
at Explorer.loadSearchPlace (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15763:31)
at async Explorer.searchDirectory (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15748:27)
at async run (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15728:22)
at async cacheWrapper (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15580:18)
at async cacheWrapper (/home/marius/work/vue-template/node_modules/vite/dist/node/chunks/dep-6e02b235.js:15580:18)
Once I managed to get the error when removing depency @vue/cli-service (#2757). Adding it to those 2 projects doesn't get rid of the error though.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
no answer in Q&A, Discord says invite is invalid.
The text was updated successfully, but these errors were encountered:
On the other side, though the vite:css error message helped me narrow down the problem, I think there's still room for improvement by catching config loading errors.
Thank you! There was indeed a PostCSS config file in the upper-level directories -- removing that solved the error.
Per your last comment, I'll leave this issue open.
Hello @mariusa. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!
Describe the bug
I get the same error by simply closing any of these 2 projects, run
npm install
andnpm run dev
:https://github.com/martinussuherman/vue-template
https://github.com/matt-auckland/vite-vue2-starter
Once I managed to get the error when removing depency
@vue/cli-service
(#2757). Adding it to those 2 projects doesn't get rid of the error though.Reproduction
https://github.com/martinussuherman/vue-template
There must be something wrong with my setup, since these 2 projects work for others.
But vite doesn't make it clearer what that is.
System Info
vite 2.1.4
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
npm
I also have these installed
Logs
Before submitting the issue, please make sure you do the following
no answer in Q&A, Discord says invite is invalid.
The text was updated successfully, but these errors were encountered: