Open ghost opened 2 years ago
I have the same problem,too If I toggle on the choice "CSS Pre-processors", the problem would happen But if I toggle it off, everything goes well
I have same issue too!! I've remove node modules and @vue/cli, and then install then again, still cannot solve this problem. I've also tried clean npm cache, but nothing happened :( For most important, i need sass-loader to use sass, but from the comment above, toggle off the CSS pre-processor is not a good idea for me.
node version: v16.13.2 @vue/cli version: v4.5.15
I have same issue too!! I've remove node modules and @vue/cli, and then install then again, still cannot solve this problem. I've also tried clean npm cache, but nothing happened :( For most important, i need sass-loader to use sass, but from the comment above, toggle off the CSS pre-processor is not a good idea for me.
node version: v16.13.2 @vue/cli version: v4.5.15
I have solved this problem but can not remeber clearly how.... Probably your project name is like "xxxxxx"(include "")? Try to change anther project name?("xxx-xxx")
I have solved this problem but can not remeber clearly how.... Probably your project name is like "xxxxxx"(include "")? Try to change anther project name?("xxx-xxx")
I've tried these two ways of naming project, they both worked well before. I've finally found my issue!!! Sometimes Vue ui will auto set the package manager into yarn while i didn't install yarn before.
So i use the command :
$ npm install -g yarn
then solve the problem!
Version
5.0.0-rc.1
Environment info
Steps to reproduce
vue ui
into the integrated terminal.What is expected?
Vue UI creates a project.
What is actually happening?
Vue UI shows a red screen with the error message:
'cannot read properties of undefined (reading 'indexOf')'
This is what you see in the terminal:
TypeError: Cannot read properties of undefined (reading 'indexOf') at /home/zmalik/.nvm/versions/node/v16.13.1/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/projects.js:283:35 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.wrap (/home/zmalik/.nvm/versions/node/v16.13.1/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/apollo-server/connectors/progress.js:39:14)