My Vue project was running smoothly until I decided to add Vuetify. Here are the steps I took:
$ vue create my-app
$ cd my-app
$ vue add vuetify
$ npm run serve
However, I encountered the following error:
ERROR in /home/ruhith/Documents/vue/file upload/fileupload/src/plugins/vuetify.ts(2,21):
2:21 Could not find a declaration file for module 'vuetify/lib'. '/home/ruhith/Documents/vue/file upload/fileupload/node_modules/vuetify/lib/index.js' implicitly has an 'any' type.
Try `npm install @types/vuetify` if it exists or add a new declaration (.d.ts) file containing `declare module 'vuetify/lib';`
1 | import Vue from 'vue';
> 2 | import Vuetify from 'vuetify/lib';
| ^
3 |
4 | Vue.use(Vuetify);
5 |
Version: typescript 3.8.3
Time: 2774ms
I'm wondering what went wrong here. Is this possibly a bug within Vuetify?