【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……

简介: 如果这是一个本地自定义元素,请务必通过编译器从组件分辨率中排除它。

【Vue warn】If this is a native custom element, make sure to exclude it from component resolution ……

2345_image_file_copy_566.jpg

runtime-core.esm-bundler.js?d2dd:40 [Vue warn]: Failed to resolve component: add-one
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 

百度翻译一下:

如果这是一个本地自定义元素,请务必通过编译器从组件分辨率中排除它。

Solving:引入单个自定义组件,不加{ }

2345_image_file_copy_567.jpg


相关文章
|
3天前
|
JavaScript 前端开发
vue动态添加style样式
vue动态添加style样式
|
2天前
|
JavaScript API
vue学习(13)监视属性
vue学习(13)监视属性
11 2
|
2天前
|
JavaScript
vue 函数化组件
vue 函数化组件
|
2天前
|
JavaScript 前端开发
vue学习(15)watch和computed
vue学习(15)watch和computed
9 1
|
2天前
|
JavaScript
vue学习(14)深度监视
vue学习(14)深度监视
10 0
|
3天前
|
JavaScript
vue中watch的用法
vue中watch的用法
|
3天前
|
JavaScript 前端开发
Vue项目使用px2rem
Vue项目使用px2rem
|
10天前
|
JavaScript
vue学习(4)数据绑定
vue学习(4)数据绑定
32 10
|
10天前
|
JavaScript 前端开发
vue学习(6)
vue学习(6)
31 9
|
10天前
|
JavaScript 开发者
vue学习(5)
vue学习(5)
24 7