'Vue: Uncaught (in promise) TypeError: Cannot read property '_c' of undefined
I need to upgrade project from vue 2 to vue3 I am using coreui template. And in that I have upgrade vue, vuex, vue-router. But when I serve the project it shows the following error in console.
Uncaught (in promise) TypeError: Cannot read property '_c' of undefined
There is no error in terminal. I have updated all router, vuex, vue with vue3 syntax.
Thanks for any help
Solution 1:[1]
Please import your Property and provide it at main.ts
Eg :
import { testProviderSymbol, createTestProviderState } from './store/modules/test/TestProvider';
createApp(App)
.provide(blogProviderSymbol, createBlogProviderState())
.mount('#app')
Solution 2:[2]
I have that problem also by using vue-qrcode-reader.
but I run npm i vue3-qrcode-reader instead of npm i vue-qrcode-reader, that fix my problem.
I guess maybe it doesn't support Vue3 yet.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Minal Chauhan |
| Solution 2 | Dharman |

