click-to-component icon indicating copy to clipboard operation
click-to-component copied to clipboard

React 19 unsuported - Could not find React instance for element

Open JesusDR01 opened this issue 11 months ago • 1 comments

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:

  1. Install a React 18 project
  2. Import component
  3. Check that you can be redirected to vscode successfully
  4. Upgrade to React 19
  5. Check that you can't be redirected to vscode successfully

Expected behavior It should behave like React 18 versions

Screenshots Console showing:

image

Additional context This might be helpful: https://github.com/hand-dot/react-inspector/issues/9

JesusDR01 avatar Dec 29 '24 23:12 JesusDR01

@JesusDR01 I wrote a support React19, if you are interested, you can try https://www.npmjs.com/package/react-find

mjw-git avatar Feb 07 '25 04:02 mjw-git

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?

thedjpetersen avatar May 06 '25 06:05 thedjpetersen

Use this lib instead https://github.com/zh-lx/code-inspector?tab=readme-ov-file

jeremytenjo avatar Jun 11 '25 16:06 jeremytenjo

Can confirm React 19 incompatibility. Please deprecate or archive this package, @ericclemmons.

alexwork1611 avatar Jul 17 '25 05:07 alexwork1611

Use this lib instead https://github.com/zh-lx/code-inspector?tab=readme-ov-file

Thank you so much!

alexwork1611 avatar Jul 17 '25 05:07 alexwork1611