Vue: Uncaught (in promise) TypeError: Cannot read property '_c' of undefined

8k Views Asked by At

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

2

There are 2 best solutions below

0
On

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')
0
On

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.