Subscribe on changes!

[Vue warn]: Failed to resolve component: AddCurrency

avatar
Oct 24th 2021

Version

3.2.20

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Hi, I got a worning in console. As you as, I'm opening an issue. [Vue warn]: Failed to resolve component: AddCurrency If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. at [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next

What is expected?

I don't know, you wanted me to open an issue

What is actually happening?

some HTML elements are not loading

avatar
Oct 25th 2021

in <script>

import { AddCurrency } from './component/AddCurrency.vue' -> import AddCurrency from './views/AddCurrency.vue', because you create it in 'views/AddCurrency.vue' and you should use import AddCurrency ... instead of import { AddCurrency } ...

and the AddCurrency component can work.

it seems that the vue-router and vuex can't take effect.

i take a try like element-plus.js in Element Plus Playground and i failure.

emmm, i also don't know how to add vue-router and vuex in sfc playground...

if you want to add vue-router and vuex, i think you can use codesandbox.

avatar
Oct 25th 2021

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.