After setting up a Vue app and importing Vue from the vue module, I encountered an issue:
ERROR in src/main.ts:4:5
TS2339: Property 'use' does not exist on type 'typeof import("/data/data/com.termux/files/home/ishankbg.tech/node_modules/vue/dist/vue")'.
2 | import App from './App.vue'
3 | import { firestorePlugin } from 'vuefire';
> 4 | Vue.use(firestorePlugin);
| ^^^
5 | createApp(App).mount('#app');
6 |
This project is built with typescript using @vue/cli. The goal is to integrate firestorePlugin from vuefire into the application.
The framework being used is Vue3. Below is the excerpt of the source code:
import Vue, { createApp } from 'vue'
import App from './App.vue'
import { firestorePlugin } from 'vuefire';
Vue.use(firestorePlugin);
createApp(App).mount('#app');
The exact cause of this error remains uncertain at this point.