I just got the project, and when I compiled it, I found that the modules and variables were not introduced successfully. After
reading the writing method of my colleague, I redefine require on app.js
solve
Check whether the WeChat developer tools are the latest version, please do not use the latest version, the official explanation:
Download historical versions of WeChat development tools: WeChat Developer Tools
Reference: WeChat open community: require introduces error reporting
Replenish
A big guy in the comment area gave a new solution!
I went to check these two configurations:
I still don’t read enough documents haha!