未定义不是一个函数(靠近"...reactDevTools.connectToDevTools...')



我花了一天多的时间试图让地图视图工作,一路上我发现了这个错误,我在互联网上根本找不到。错误代码显示在iOS模拟器上,并带有红色屏幕,这是反应本机的典型特征。

我尝试重新安装开发工具,但没有用。

这是我的包.json

{
  "name":"P77",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "^16.7.0",
    "react-native": "0.57.8",
    "react-native-elements": "^0.19.1",
    "react-native-maps": "^0.22.1",
    "react-native-vector-icons": "^6.1.0",
    "react-navigation": "git+https://github.com/react-community/react-navigation.git"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.51.1",
    "react-devtools": "^3.4.3",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

请帮忙

我找到了一个适合我的答案,但我不确定。也许这可以帮助未来的人们。我跑了:

"yarn add eslint-config-rallycoding --dev" 
"npm start" 

(在项目目录中)

相关内容

  • 没有找到相关文章

最新更新