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-2026 CODEPRJ.COM