其他分享
首页 > 其他分享> > 导入组件避坑Unknown custom element: <NewLushu> - did you register the component correctly?

导入组件避坑Unknown custom element: <NewLushu> - did you register the component correctly?

作者:互联网

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <NewLushu> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

原因:

我的代码:

 改正后:import NewLushu from './components/NewLushu.vue'

总结:导入组件的时候 用了{ xxx组件名 },导入组件时不需要加{}

标签:did,Unknown,register,custom,导入,correctly,组件,NewLushu
来源: https://blog.csdn.net/qq_42801351/article/details/121016223