Technology Sharing

uniapp error--app.json: app.json was not found in the project root directory

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

【question】

The uni-app project that has just been created reports the following error when running the WeChat applet console:

【solution】

1. Open the project.config.json file in the program root directory

2. Configure miniprogramRoot and specify the root directory of the miniprogram code

The project file directory after compiling my applet code is: dist/dev/mp-weixin/

"miniprogramRoot": "dist/dev/mp-weixin/",