微信小程序thirdScriptError錯誤

今天弄微信小程序,多人協同的時候,app.json 出現了merge,然後解決了之後,出現瞭如下的問題:

錯誤

從錯誤上面看根本沒有找到問題是什麼,各種百度,google,也找不到相同的問題的人,搞了1個多小時,最後終於發現:

一個page頁面,沒有在app.json中註冊從而導致了這個問題!!!

那麼問題來了,爲啥別的頁面不註冊不會有這個問題呢??!!

逐個排除,原來是這個頁面引用了自定義組件,導致頁面初始化異常~~~

thirdScriptError
sdk uncaught third Error
APP-SERVICE-Engine:Please do not call Page constructor in files that not listed in “pages” section of app.json or plugin.json
Error: APP-SERVICE-Engine:Please do not call Page constructor in files that not listed in “pages” section of app.json or plugin.json

錯誤的信息放在上面,方便你們搜索!!!

我的blog

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章