Closed kayn23 closed 2 years ago
Was there a fix for this? Getting the same issue.
At the moment I can't say for sure. But the solution was to fix the package versions
I got it, vue add
automatically does the latest version, so it added v5, but the rest of my app was on v4 so it was incompatible. Had to vue add typescript@4
Version
5.0.4
Environment info
Steps to reproduce
What is expected?
Typescript will be added to the project
What is actually happening?
🚀 Invoking generator for @vue/cli-plugin-typescript... ERROR Error: Cannot find module '@vue/cli-plugin-router/generator/template/src/views/HomeView.vue' from '/Users/anatoly/Documents/work/ndfl_all/node_modules/@vue/cli-plugin-typescript/generator/template/src/views' Error: Cannot find module '@vue/cli-plugin-router/generator/template/src/views/HomeView.vue' from '/Users/anatoly/Documents/work/ndfl_all/node_modules/@vue/cli-plugin-typescript/generator/template/src/views' at Function.resolveSync [as sync] (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/node_modules/resolve/lib/sync.js:111:15) at renderFile (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:518:17) at /Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:303:27 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Generator.resolveFiles (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/Generator.js:310:7) at async Generator.generate (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/Generator.js:204:5) at async runGenerator (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/invoke.js:111:3) at async invoke (/Users/anatoly/.nvm/versions/node/v14.18.2/lib/node_modules/@vue/cli/lib/invoke.js:92:3)