原因是因为 mobx的版本用的最新版本..用到了 Symbol部分es6的api特性.

解决问题办法

1. 把mobx降版本到 4.3.1 . mobx-react降版本到 5.1.0 即可.

或者

2. 在.babelrc配置文件 增加 ployfill插件 "babel-plugin-transform-runtime"即可

{
  "presets": [
    "react-native"
  ],
  "plugins": [
    "transform-decorators-legacy",
    "babel-plugin-transform-runtime"
  ]
}

.

相关文章:

  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-06-05
  • 2022-03-06
  • 2021-08-22
相关资源
相似解决方案