WeChat Mini Program reports the following error during operation:
```plain
"regeneratorRuntime is not defined" error handling method
```
```plain
thirdScriptError
sdk uncaught third Error
regeneratorRuntime is not defined
ReferenceError: regeneratorRuntime is not defined
```
It’s because the project uses syntax based on ES7
# Solution 1:
Copy runtime.js and introduce it in the required js file
This method is more troublesome. It is recommended to use the following solution
# Solution 2:
Turn on "Enhanced Compilation" in the development tools

**If you do not see the "Enhanced Compilation" option in your development tools, please upgrade the development tools to the latest version**