jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.36k stars 809 forks source link

Cannot add node "1" because a node with that id is already #708

Closed DonRyu closed 2 years ago

DonRyu commented 2 years ago

React Native Debugger app version: download it from howbrew React Native version: 0.68.7 Platform:android Is real device of platform: no Operating System: mac os

Screen Shot 2022-07-02 at 10 41 55 PM

I did everything here https://github.com/jhen0409/react-native-debugger/issues/668

but whenever I did


on Mac OS (M1) the following fixed it for me:

yarn global add react-devtools react-devtools-core
and, in the app's package.json:

"resolutions": {
    "react-devtools-core": "4.14.0"
  },

The metro terminal show

Error: Unable to resolve module ./debugger-ui/debuggerWorker.d9da4ed7 from ``: None of these files exist:

and the RNdebugger application is keep blinking

ajp8164 commented 2 years ago

Seeing same error and also added the deps etc as described in #668.

RND 0.12.1

from package.json

  "dependencies": {
       ...
    "@reduxjs/toolkit": "^1.8.3",
    "react": "18.0.0",
    "react-devtools": "4.14.0",
    "react-devtools-core": "4.14.0",
    "react-native": "0.69.1"
},
  "resolutions": {
    "react-devtools-core": "4.14.0"
  },
mohan1361 commented 2 years ago

Seeing same error so i fixed it for RND 0.12.1 in package.json just add
"resolutions": { "react-devtools-core": "~4.14.0" },

and remove node_modules and package.json

rm package-lock.json rm node_modules and check if you not installed yarn then install globally npm install --global yarn and check yarn --version if it installed and simply run yarn install then in your yarn.lock you see this file and this generally override dev-tools react-devtools-core@^4.23.0, react-devtools-core@~4.14.0: and you can confirm it in yarn.lock.

image

jhen0409 commented 2 years ago

It fixed on v0.13.0. It also required bump react-devtools-core to v4.25 on project.