Wechat applet reports an error [app.json file content error] app json: app. JSON not found

as a result of :
After importing the project project.config.json The file was modified by wechat developer tools .

solve :
Missing code :“miniprogramRoot”: “./unpackage/dist/dev/mp-weixin”.“miniprogramRoot” Is the directory of the specified applet source code ( Need to be relative path ).

 Insert picture description here

Just lock to /dist/dev/mp-weixin The catalogue will do , Everyone's directory structure may be different , You can look in various directories , Look where there is dist Catalog , Then you can find it .

Similar articles