Use mpvue to build Mini Program, report an error in the project after npm run build?

mpvue project, npm run build after the project opens an error

in the process of project development, the project runs normally, the development is completed, the project is finally packaged, run npm run build , then open the project and find an error; no error is reported during the packaging process, and the webpack configuration is not changed

Project error
clipboard.png

clipboard.png

after rerunning npm run dev , the project will open normally

what may be the cause of this, and can be solved? Thank you

Jun.17,2021
Have you solved

? I have also encountered this problem


. Have you solved it? have you encountered the same problem

?
Menu