详细问题描述(升级到新版hbuildx后,在chrome下运行uni-app出现报错)
我是用了icon组件
<icon type="warn" size="93" color="#FFBE00"></icon>
[内容]
vue.runtime.esm.js:593 [Vue warn]: Unknown custom element: <v-uni-icon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
---> <PagesDevelopmentIndex> at Vueproject/tdsa/pages/development/index.vue
<PageBody> at pageBody.vue
<Page> at index.vue
<PagesDevelopmentIndex5>
<App> at index.vue
<Root>
重现步骤
[步骤]
运行到chrome里面九就会出现
[结果]
ICON不见了
tabbar没有明显错误
[期望]
ICON正常显示,不报错
IDE运行环境说明
HBuilderX ## 1.2.0.20181122
win10
App运行环境说明
Chrome
联系方式
534471447
2 个回复
DCloud_UNI_GSQ
h5端并没有icon组件。
凌云阁 (作者)
但是小程序和APP运行就是对的!
DCloud_UNI_GSQ
uniapp并未实现该组件,具体参考文档:https://uniapp.dcloud.io/component/README
2018-11-29 15:48