The uni-app project reported an error when opening the WeChat developer tool [app.json file content error] app.json: app.json was not found in the project root directory

When the uni-app project opens the WeChat developer tool, the console reports an error [app.json file content error] app.json: app.json was not found in the project root directory (env: Windows,mp,1.06.2303220; lib: 2.32. 0)

insert image description here

solution

  1. The following is a uni-app project. First, we need to check whether there is an unpackage folder.
    If there is a project, it can directly point to unpackage\dist\dev\mp-weixin.
    insert image description here
    If not, you need to compile it with HBuilder X.
    Run the compilation process-"Run to Mini Program Simulator-"WeChat Developer Tools

insert image description here
After the compilation is complete, the project will appear in the unpackage folder.
insert image description here
Open the applet editor again and point to the project directory /unpackage/dist/dev/mp-weixin/ and the applet can be run

Guess you like

Origin blog.csdn.net/gjwgjw1111/article/details/130744850