WeChat Mini Program error [app.json file content error] app.json: app.json not found, one solution

Origin:

In order to be compatible with mini-programs, this is what Uniapp reported. After unpacking it, I found that the WeChat mini-program could not run and reported an error.

Because:

After importing the project, the project.config.json file is modified by the WeChat developer tools.

solve:

Missing code: "miniprogramRoot": "./unpackage/dist/dev/mp-weixin". "miniprogramRoot" is the directory specifying the source code of the mini program (it needs to be a relative path).

 Just lock it to the /dist/dev/mp-weixin directory. Everyone's directory structure may be different. You can search in each directory to see where there is a dist directory, and then search for it.

Guess you like

Origin blog.csdn.net/weixin_52691965/article/details/119863265