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
2 Answers
Reset to default 2I 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条)