TaroJS 使用H5模式打包后Android6以下出现Object.assign is not a function 报错
-
报错情况如下
以下是依赖环境
"dependencies": { "@babel/runtime": "^7.12.5", "@tarojs/runtime": "3.0.19", "@tarojs/taro": "3.0.19", "@tarojs/components": "3.0.19", "mobx": "^6.0.4", "mobx-react": "^7.0.5", "react-dom": "^17.0.1", "@tarojs/react": "3.0.19", "react": "^17.0.1" }, "devDependencies": { "@types/webpack-env": "^1.16.0", "@types/react": "^17.0.0", "@tarojs/mini-runner": "3.0.19", "@babel/core": "^7.12.10", "@tarojs/webpack-runner": "3.0.19", "babel-preset-taro": "3.0.19", "eslint-config-taro": "3.0.19", "eslint": "^7.16.0", "eslint-plugin-react": "^7.21.5", "eslint-plugin-import": "^2.22.1", "eslint-plugin-react-hooks": "^4.2.0", "stylelint": "13.8.0" }