javascript - Vue: Uncaught (in promise) TypeError: Cannot read property '_c' of undefined - Stack Overflow

I need to upgrade project from vue 2 to vue3I am using coreui template. And in that I have upgrade vue

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

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

Share edited Jun 24, 2021 at 12:52 Maulik Shah asked Nov 25, 2020 at 5:28 Maulik ShahMaulik Shah 1,0501 gold badge8 silver badges18 bronze badges 6
  • 2 It seems that CoreUI library doesn't support Vue3 yet github./coreui/coreui-free-vue-admin-template/issues/238 – Eugene Karataev Commented Nov 25, 2020 at 6:50
  • @EugeneKarataev As per doc they are supporting vue 3. prnt.sc/vplvd8. Please correct me if I am wrong. – Maulik Shah Commented Nov 25, 2020 at 7:08
  • I'm not 100% sure, but it seems that CoreUI v3 is not currently patible with Vue 3, because CoreUI v3 depends on Vue 2 (see dependencies tab): npmjs./package/@coreui/vue – Eugene Karataev Commented Nov 25, 2020 at 7:16
  • @EugeneKarataev Thanks! Can you Please share admin template which support vue3. If you have any. – Maulik Shah Commented Nov 25, 2020 at 14:21
  • I have the same problem but I'm using BalmUI. I've seen this is patible with vue3. Does anyone know why is this not working? – Bianca Balan Commented Nov 11, 2021 at 13:33
 |  Show 1 more ment

2 Answers 2

Reset to default 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.

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744931439a4601761.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信