意外的关键字Const:在本机模式中,严格模式下不允许使用Const关键字

时间:2018-12-08 11:22:58

标签: javascript reactjs react-native redux

enter image description here我是react-native.的新手,正在尝试运行一个简单的应用程序,但这给我带来了很多与依赖项有关的问题。

我有什么,

我将通天塔设置为

{

}

我的package.json

{
  "name": "reactCourse",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "android": "react-native run-android"
  },
  "dependencies": {
    "react": "16.6.1",
    "react-native": "0.55.3"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.47.0",
    "react-test-renderer": "16.6.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

我不明白为什么这会给我这个错误。

有人可以帮我吗?

0 个答案:

没有答案