TaroJS 使用H5模式打包后Android6以下出现Object.assign is not a function 报错



  • 报错情况如下

    4f1d2d54-51a3-49ac-a14d-81ff5a5a7c0c-image.png

    以下是依赖环境

    "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"
      }
    

登录后回复