Loading…

"regeneratorRuntime is not defined"

Table of contents on this page
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 ![](https://dcdn.it120.cc/yuque/0/2019/png/572726/1572847476976-0637e0e8-a6f7-43a4-8927-2b0f6e33dc74.png) **If you do not see the "Enhanced Compilation" option in your development tools, please upgrade the development tools to the latest version**