Bump react-devtools-core upward for compatibility

Reviewed By: passy

Differential Revision: D27850934

fbshipit-source-id: 0b03b110accce7aa522f3e18edba8c316f9d00d8
This commit is contained in:
Michel Weststrate
2021-05-07 09:02:49 -07:00
committed by Facebook GitHub Bot
parent 25424ed47c
commit 9e978cad76
4 changed files with 23 additions and 11 deletions

View File

@@ -182,6 +182,17 @@ That is correct, the dependencies won't be actually included in the release (whe
1. Make sure you have only one device running to connect to. If there are multiple devices, close them and try again (restart Flipper if needed).
1. Make sure there is only one RN app running on the device
#### Q: Cannot inspect an element in the React DevTools: "Could not inspect element with id ..."
The "Could not inspect element with id XXX" error will appear when selecting a specific element in the React DevTools, when the version of the DevTools shipped in Flipper is incompatible with the `react-devtools-core` package used by the React Native application.
A way to fix this is to set the `resolutions` field in the `package.json` of the app to force a specific version and then run `yarn install`, for example:
```json
"resolutions": {
"react-devtools-core": "4.13.2"
}
```
#### Q: How to select a specific element in the React DevTools?
1. Trigger the debug menu on your RN app (you can use the button in the Flipper toolbar for that)