简体   繁体   中英

[Vue warn]:Unknown custom element: ... -did you register the component correctly?

When you get

[Vue warn]: Unknown custom element: <...> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <...> src/views/....vue <App> at src/....vue <Root>

vue.runtime.esm.js?2b0e:619 [Vue 警告]:未知的自定义元素:-您是否正确注册了组件?对于递归组件,请确保提供“名称”选项。在 ---> 在 src/views/Dashboard.vue 的 src/App.vue 中找到

you might have forgotten to install dependencies

I know this is silly mistake but it can save your time. Sometime you have lots of work and you copy and paste form online solution, then you add dependencies in your code but forgot to install all the dependencies which you include in your vue-js project/code.

Please check you have installed all dependencies or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM