ERROR in src/router/index.ts:1:68 TS7016: Could not find a declaration file for module 'vue-router'. #2581
-
|
Sorry, I'm new to TS, and vue.js. I created a project using vue-cli (version 5.0.9) but I got this error when I try "npm run serve": Not sure if it's helpful, but here is my package.json: How do I fix this error? Update: I did a short search on another way to create a vue project, and I came upon that maybe the way I used, vue-cli is not as good as create-vue: https://github.com/vuejs/create-vue?tab=readme-ov-file I'll keep this discussion up in case anyone might benefit from it, or close it if not. But I think I'll try the Vite way (create-vue) since that readme has convinced me it's better than vue-cli create. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm closing this question because the Vue community has replaced Vue CLI, making Vite the default builder tool for creating Vue projects. I followed the quick start instructions at https://vuejs.org/guide/quick-start.html and there have been no errors. Thank you to the Vue community for excellent documentation! |
Beta Was this translation helpful? Give feedback.
I'm closing this question because the Vue community has replaced Vue CLI, making Vite the default builder tool for creating Vue projects. I followed the quick start instructions at https://vuejs.org/guide/quick-start.html and there have been no errors.
Thank you to the Vue community for excellent documentation!