Wechat applet – error reporting (regeneratorruntime is not defined)

 

Async/await is used, and suddenly it is not supported. Later, thank Du Niang for the solution process:
Ctrl + R

 

Command: NPM init (enter to the end)
command:   npm install [email protected]
This generates a folder

 

At this point: the node is displayed_ Copy modules/regenerator – Runtime/runtime. JS to your applet project  

 

It’s over  

Similar Posts: