【问题标题】:react-devtools agent got no connection in react native with exporeact-devtools 代理在 react native 与 expo 中没有任何联系
【发布时间】:2020-08-23 16:42:16
【问题描述】:

当我使用 react-native-debugger 时,react-devtools 对我不起作用

错误信息:

DevTools v4 is incompatible with this version of React
Either upgrade React or install React DevTools v3:

npm install -d react-devtools@^3

警告信息:

react-devtools 代理没有连接

我已尝试安装 npm 包:

  • npm install --save-dev react-devtools@^3
  • npm install -g react-devtools@^3

如何解决这个问题?

【问题讨论】:

标签: react-native expo react-native-debugger


【解决方案1】:

转到此发布页面:https://github.com/jhen0409/react-native-debugger/releases

根据您的操作系统下载文件,然后按照说明进行操作

https://github.com/jhen0409/react-native-debugger

【讨论】:

    【解决方案2】:

    你需要安装好的版本:

    brew update && brew cask install https://raw.githubusercontent.com/caskroom/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb
    

    不要忘记先卸载 v4(使用与安装它相同的方式 - npm 或 brew 或...)。


    GitHub 页面截图:

    【讨论】:

    • 我用的是windows机器
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-19
    • 1970-01-01
    • 2021-11-26
    • 1970-01-01
    相关资源
    最近更新 更多