Closed jsLyLeeHi closed 4 years ago
新建项目 taro next 编译到h5 运行时出现 Uncaught ReferenceError: regeneratorRuntime is not defined
package.json
{ "name": "h5test", "version": "1.0.0", "private": true, "description": "", "templateInfo": { "name": "mobx", "typescript": true, "css": "sass" }, "scripts": { "build:weapp": "taro build --type weapp", "build:swan": "taro build --type swan", "build:alipay": "taro build --type alipay", "build:tt": "taro build --type tt", "build:h5": "taro build --type h5", "build:rn": "taro build --type rn", "build:qq": "taro build --type qq", "build:quickapp": "taro build --type quickapp", "dev:weapp": "npm run build:weapp -- --watch", "dev:swan": "npm run build:swan -- --watch", "dev:alipay": "npm run build:alipay -- --watch", "dev:tt": "npm run build:tt -- --watch", "dev:h5": "npm run build:h5 -- --watch", "dev:rn": "npm run build:rn -- --watch", "dev:qq": "npm run build:qq -- --watch", "dev:quickapp": "npm run build:quickapp -- --watch" }, "browserslist": [ "last 3 versions", "Android >= 4.1", "ios >= 8" ], "author": "", "license": "MIT", "dependencies": { "@babel/runtime": "^7.7.7", "@tarojs/components": "3.0.0-beta.6", "@tarojs/react": "3.0.0-beta.6", "@tarojs/runtime": "3.0.0-beta.6", "@tarojs/taro": "3.0.0-beta.6", "mobx": "^4.8.0", "mobx-react": "^6.1.4", "react": "^16.10.0", "react-dom": "^16.10.0", "regenerator-runtime": "^0.11.1" }, "devDependencies": { "@tarojs/cli": "3.0.0-beta.6", "@types/webpack-env": "^1.13.6", "@types/react": "^16.0.0", "@tarojs/mini-runner": "3.0.0-beta.6", "@babel/core": "^7.8.0", "@tarojs/webpack-runner": "3.0.0-beta.6", "babel-preset-taro": "3.0.0-beta.6", "eslint-config-taro": "3.0.0-beta.6", "eslint": "^6.8.0", "eslint-plugin-react": "^7.8.2", "eslint-plugin-import": "^2.12.0", "eslint-plugin-react-hooks": "^1.6.1", "stylelint": "9.3.0", "@typescript-eslint/parser": "^2.x", "@typescript-eslint/eslint-plugin": "^2.x", "typescript": "^3.7.0" } }
正常运行h5
Uncaught ReferenceError: regeneratorRuntime is not defined
Taro CLI 3.0.0-beta.6 environment info: System: OS: Windows 10 Binaries: Node: 10.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.2 - C:\Program Files\nodejs\npm.CMD
@jsLyLeeHi 下个版本解决,已有相关 issue #6274 ,这个先关了。
新建项目 taro next 编译到h5
运行时出现 Uncaught ReferenceError: regeneratorRuntime is not defined
新建项目 taro next 编译到h5
运行时出现 Uncaught ReferenceError: regeneratorRuntime is not defined
package.json
期望行为
正常运行h5
报错信息
Uncaught ReferenceError: regeneratorRuntime is not defined
系统信息
Taro CLI 3.0.0-beta.6 environment info: System: OS: Windows 10 Binaries: Node: 10.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.2 - C:\Program Files\nodejs\npm.CMD