click-to-component
click-to-component copied to clipboard
React 19 unsuported - Could not find React instance for element
Describe the bug React 19 is not working, when I try to go to any component, I can see: Could not find React instance for element
To Reproduce Steps to reproduce the behavior:
- Install a React 18 project
- Import component
- Check that you can be redirected to vscode successfully
- Upgrade to React 19
- Check that you can't be redirected to vscode successfully
Expected behavior It should behave like React 18 versions
Screenshots Console showing:
Additional context This might be helpful: https://github.com/hand-dot/react-inspector/issues/9
@JesusDR01 I wrote a support React19, if you are interested, you can try https://www.npmjs.com/package/react-find
This is explicitly broken by https://github.com/facebook/react/pull/31711
I've left a comment (below) asking the author for an alternative. @ericclemmons are you still taking pull requests to this repo?
Use this lib instead https://github.com/zh-lx/code-inspector?tab=readme-ov-file
Can confirm React 19 incompatibility. Please deprecate or archive this package, @ericclemmons.
Use this lib instead https://github.com/zh-lx/code-inspector?tab=readme-ov-file
Thank you so much!