The mpvue project shows "The entry app.json file was not found

Build the basic mpvue project

# install vue-cli

$ npm install [email protected] (According to the version of node, the current node version is 10.24.1, installing the default version 2.* will report an error, so specify the version)

# Create a local project from the project

$ vue init mpvue/mpvue-quickstart my-project

# Install dependencies and start automatic build

$ cd my-project

$ npm install 

$ npm run dev

Follow the above steps to automatically generate the WeChat applet code, open the error report in the WeChat developer tool, and always prompt "The entry app.json file was not found"

# Execute packaging first to generate dist directory

$ npm run build

# Then modify the miniprogramRoot item in the project.config.json file, the default is "dist", change it to "dist/wx", and change it to a real directory.

 

 

Before the problem occurred, npm run build was not executed, so the path could not be found, and the configuration items could not be modified. Finally, it was found that there was no dist directory.

Guess you like

Origin blog.csdn.net/ssnnyyjj/article/details/129750599