hainuo
hainuo
  • 发布:2018-11-21 08:14
  • 更新:2018-11-21 10:26
  • 阅读:4071

uni-app生成h5报错

分类:uni-app
[Vue warn]: Unknown custom element: <u-web-view> - did you register the component correctly? For recursive components, make sure to provide the "name" option.  

found in  

---> <PagesIndexIndex> at /project/pages/index/index.vue  
       <PageBody> at pageBody.vue  
         <Page> at index.vue  
           <PagesIndexIndex1>  
             <App> at index.vue  
               <Root>  
warn @ vue.runtime.esm.js:593  
createElm @ vue.runtime.esm.js:5646  
patch @ vue.runtime.esm.js:6170  
Vue._update @ vue.runtime.esm.js:2708  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
Watcher @ vue.runtime.esm.js:3189  
mountComponent @ vue.runtime.esm.js:2836  
./packages/@uni-app/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8098  
init @ vue.runtime.esm.js:4207  
createComponent @ vue.runtime.esm.js:5686  
createElm @ vue.runtime.esm.js:5633  
addVnodes @ vue.runtime.esm.js:5814  
updateChildren @ vue.runtime.esm.js:5941  
patchVnode @ vue.runtime.esm.js:6015  
updateChildren @ vue.runtime.esm.js:5901  
patchVnode @ vue.runtime.esm.js:6015  
patch @ vue.runtime.esm.js:6175  
Vue._update @ vue.runtime.esm.js:2711  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
getAndInvoke @ vue.runtime.esm.js:3301  
run @ vue.runtime.esm.js:3296  
flushSchedulerQueue @ vue.runtime.esm.js:3031  
(anonymous) @ vue.runtime.esm.js:1888  
flushCallbacks @ vue.runtime.esm.js:1809  
Promise.then (async)  
microTimerFunc @ vue.runtime.esm.js:1857  
nextTick @ vue.runtime.esm.js:1901  
queueWatcher @ vue.runtime.esm.js:3123  
update @ vue.runtime.esm.js:3286  
Vue.$forceUpdate @ vue.runtime.esm.js:2732  
forceRender @ vue.runtime.esm.js:2364  
(anonymous) @ vue.runtime.esm.js:2374  
(anonymous) @ vue.runtime.esm.js:322  
(anonymous) @ pages.json:7  
Promise.then (async)  
(anonymous) @ pages.json:7  
resolveAsyncComponent @ vue.runtime.esm.js:2389  
createComponent @ vue.runtime.esm.js:4289  
_createElement @ vue.runtime.esm.js:4500  
createElement @ vue.runtime.esm.js:4437  
vm.$createElement @ vue.runtime.esm.js:4572  
render @ pages.json:216  
Vue._render @ vue.runtime.esm.js:4624  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
Watcher @ vue.runtime.esm.js:3189  
mountComponent @ vue.runtime.esm.js:2836  
./packages/@uni-app/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8098  
init @ vue.runtime.esm.js:4207  
createComponent @ vue.runtime.esm.js:5686  
createElm @ vue.runtime.esm.js:5633  
patch @ vue.runtime.esm.js:6170  
Vue._update @ vue.runtime.esm.js:2708  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
Watcher @ vue.runtime.esm.js:3189  
mountComponent @ vue.runtime.esm.js:2836  
./packages/@uni-app/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8098  
init @ vue.runtime.esm.js:4207  
createComponent @ vue.runtime.esm.js:5686  
createElm @ vue.runtime.esm.js:5633  
createChildren @ vue.runtime.esm.js:5761  
createElm @ vue.runtime.esm.js:5662  
patch @ vue.runtime.esm.js:6170  
Vue._update @ vue.runtime.esm.js:2708  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
Watcher @ vue.runtime.esm.js:3189  
mountComponent @ vue.runtime.esm.js:2836  
./packages/@uni-app/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8098  
init @ vue.runtime.esm.js:4207  
createComponent @ vue.runtime.esm.js:5686  
createElm @ vue.runtime.esm.js:5633  
patch @ vue.runtime.esm.js:6209  
Vue._update @ vue.runtime.esm.js:2708  
updateComponent @ vue.runtime.esm.js:2829  
get @ vue.runtime.esm.js:3201  
Watcher @ vue.runtime.esm.js:3189  
mountComponent @ vue.runtime.esm.js:2836  
./packages/@uni-app/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8098  
../../../../../../project/longtong/main.js @ main.js:18  
__webpack_require__ @ bootstrap:767  
fn @ bootstrap:130  
0 @ index.js:31664  
__webpack_require__ @ bootstrap:767  
(anonymous) @ bootstrap:903  
(anonymous) @ bootstrap:903  

报错信息如上 初步判断时 u-web-view 未注册 component

2018-11-21 08:14 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

  • hainuo (作者)

    好的

    2018-11-21 10:48

该问题目前已经被锁定, 无法添加新回复