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

React Scan ran into a problem

Open tydolla00 opened this issue 9 months ago • 7 comments

Hello, I did a fresh install of react-scan into my Next project and got this error.

Versions

"next": "^15.1.2", "react": "^19.0.0", "react-scan": "^0.2.14",

React Scan ran into a problem undefined is not an object (evaluating 'r.__H')

Image

I've got the imports at the top in both the layout and React Scan component. I tried deleting node modules, removing the react-scan package and reinstalling. It occurs in both chrome and safari.

I even have _debug: "verbose", in the react scan component and am not getting any logs in the console. I am able to see the rerenders but I would like to see the fps counter as im debugging animations. Any assistance would help, thanks!

tydolla00 avatar Mar 14 '25 19:03 tydolla00

Preact error. Most likely happens when you bundle.

lxsmnsyc avatar Mar 15 '25 03:03 lxsmnsyc

Preact error. Most likely happens when you bundle.

Any idea on how I can resolve this issue?

tydolla00 avatar Mar 15 '25 20:03 tydolla00

@tydolla00 I'm not sure yet. Will look into this.

lxsmnsyc avatar Mar 16 '25 07:03 lxsmnsyc

Same issue

  "next": "^14.2.5",
    "react-scan": "^0.3.2",
    "react": "^18.3.1",

r miising in fire fox _h in chrome

Image Image

dev-bazz avatar Mar 20 '25 09:03 dev-bazz

I am also facing the same issue.

rnkdsh avatar Apr 10 '25 09:04 rnkdsh

Running into this issue as well. has anyone been able to find a fix for it?

grimgoon avatar Apr 22 '25 14:04 grimgoon

I feel like it should be installed as a devDependency, have you tried it? Also the script should work fine instead of installing in the project

JiroRauwers avatar Aug 15 '25 13:08 JiroRauwers