天天看點

解決微信小程式項目導入的問題:app.json 未找到、 __wxConfig is not defined

剛剛導入一個項目時,

報錯如下:

Uncaught ReferenceError: __wxConfig is not defined
    at instanceframe?s=1619150958891&autoload:1
[ app.json 檔案内容錯誤] app.json: app.json 未找到
           
解決微信小程式項目導入的問題:app.json 未找到、 __wxConfig is not defined

問題分析:

  • 導入項目的路徑出錯了,并不是需要再安裝什麼庫或者配置什麼。

怎麼解決:

  • 關閉項目,重新導入,導入時要選擇包含app.json最近的檔案夾。

綜述:

解決微信小程式項目導入的問題:app.json 未找到、 __wxConfig is not defined
解決微信小程式項目導入的問題:app.json 未找到、 __wxConfig is not defined

參考連結:

  • https://developers.weixin.qq.com/community/develop/doc/00088a20200168eb3a8b3426751000
  • https://developers.weixin.qq.com/community/develop/doc/000848ffc00540ccc0db91a015b400

繼續閱讀