react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

Extension causes an error with react devtool.

Open ramifara opened this issue 9 months ago • 6 comments

I have installed the extension after following the instruction and as soon as I activate it, this error from react dev tool appears. this error does not happen when I deactivate the react-scan extension.

Image

Locally it blocks the page, but its possible to close the error overlay and then it is possible to use the app and extension functions as expected. in the deployed version there is only an error on the console.

This issue exists on any react/nextjs page that i visited.

Image

ramifara avatar Mar 10 '25 10:03 ramifara

Thanks :) The PR of the new version is here PR 322. You can test it with:

brave-extension-v1.0.8.zip chrome-extension-v1.0.8.zip firefox-extension-v1.0.8.zip

Please let us know if it works correctly! :)

pivanov avatar Mar 11 '25 01:03 pivanov

Hi @pivanov Thank you for looking into it, unfortunately after installing the new version I still get the same error with the extension, which still seems like having some conflict with React Dev Tool extension, I am not sure if its something on my side or not but I have tested it on multiple chrome instances. only on incognito where I dont have react dev tool this issue does not happen.

the errors are:

Uncaught TypeError: window.__REACT_DEVTOOLS_GLOBAL_HOOK__.on is not a function at installHook.js:52:41 at installHook.js:1:151562 at installHook.js:1:151566

and Uncaught TypeError: Cannot read properties of undefined (reading 'has') at registerRenderer (backendManager.js:1:24203) at backendManager.js:1:25822 at Map.forEach (<anonymous>) at backendManager.js:1:25809 at welcome (backendManager.js:1:26160)

let me know if I can provide any other information

ramifara avatar Apr 02 '25 19:04 ramifara

I have deactivated react dev tool for now and the error is gone, but for the time being I need to switch between them. :)

ramifara avatar Apr 02 '25 19:04 ramifara

Still got this issue with v1.0.9

Image

ArsenicBismuth avatar May 06 '25 10:05 ArsenicBismuth

Same here using v1.0.9 from chrome webstore

dimashpt avatar May 19 '25 03:05 dimashpt

Also seeing the issue, looks related to Bippy instrumentation

Image

slorber avatar May 22 '25 11:05 slorber

I believe this is fixed in extension version 1.0.10, which has not been published to the chrome web store. It's available directly through the repo, instructions here- https://github.com/aidenybai/react-scan/blob/main/BROWSER_EXTENSION_GUIDE.md

Waiting on my verification from chrome web store to be able to publish latest

RobPruzan avatar Jun 29 '25 01:06 RobPruzan

I believe this is fixed, and haven't seen any activity here showing otherwise, so going to close the issue

RobPruzan avatar Jul 05 '25 07:07 RobPruzan

Just FYI the chrome store still shows version 1.0.9. I see the version here is already on 1.1.4 but that version still causes errors:

    at installHook.js:1:146165
    at installHook.js:1:146169

h3adache avatar Aug 19 '25 21:08 h3adache

Just FYI the chrome store still shows version 1.0.9. I see the version here is already on 1.1.4 but that version still causes errors:

    at installHook.js:1:146165
    at installHook.js:1:146169

same experience, the chrome store version is 1.0.9 and it throws error constantly

MhL5 avatar Sep 27 '25 14:09 MhL5