Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.


我大概是踩坑大师,又来一坑,今天做h5跳转小程序,wx-open-launch-weapp 这个一直报未定义,我都吐了,然后看是要全局配置 Vue.config.ignoredElements=['wx-open-launch-weapp']

配置了之后,你大概懵,怎么一下报一堆错误,控制台全是红色(注意:我这报的错误纯粹是因为我用的uni-app),报错的原因就是因为我全局配置的覆盖了uni-app的配置造成的,要哭了.........

解决方法就是,push进你的全局配置,不要覆盖:Vue.config.ignoredElements.push('wx-open-launch-weapp'),这样就没问题了,经验少真的是痛苦并快乐着

 

以上方法参考了一篇别的博主写的,简直救我于水火:https://dandelioncloud.cn/article/details/1419660973564301313/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.解决方法 vue报错[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in at src/views/index/"> [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> at src/views/index/ vue引入组建报错Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in VUE报错解决方法 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.问题的解决方法 vue组件注册错误:Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. 百度地图API name未定义[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM