The project error is shown as follows:

Solution:

1. Check whether the secondary directory file wx exists in the dist directory of the packaged file. If yes, go to Step 2.

Json file: dist/wx/

Then NPM run dev.