You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React scan not working in Firefox (NPM and CDN) #400
I changed the browser to Edge. The problem occurred again. The first time, react scan worked perfectly. But after installing react developer tools, react scan stopped working. Then I removed that extension from the browser. Now react scan works fine.
This is a really frustrating issue and yes seems it was React Developer Tools for me too. Issue name should probably be updated, I'm not using Firefox.
Multiple reports here noted that the workaround was to switch from react-scan to react-scan/all-environments. The only meaningful difference between those two entry points is that all-environments bypasses React Scan's production-detection check — and that check had a bug where any single registered production renderer would flip React Scan into "production mode" and disable it (#402). React DevTools doesn't itself register a renderer, but Firefox + DevTools setups can produce a similar misclassification depending on bippy's hook installation order.
The production-detection bug is fixed in 0.5.5. Could you re-test on react-scan@0.5.5 using the regular react-scan import (not /all-environments) and report back? If it still doesn't work, please attach the result of scan({ _debug: 'verbose' }) so I have logs to work with.
Activity
las-nish commentedon Jul 23, 2025
Found the issue:
I changed the browser to Edge. The problem occurred again. The first time, react scan worked perfectly. But after installing react developer tools, react scan stopped working. Then I removed that extension from the browser. Now react scan works fine.
sss-Mihail-sss commentedon Aug 28, 2025
I had the same problem in firefox. Changed import to react-scan/all-environments and everything worked
las-nish commentedon Aug 29, 2025
I'll try that method
rookbreezy commentedon Apr 6, 2026
This is a really frustrating issue and yes seems it was React Developer Tools for me too. Issue name should probably be updated, I'm not using Firefox.
The solution is as @sss-Mihail-sss says, install the npm package https://www.npmjs.com/package/react-scan then import from react-scan/all-environments
Here is a tailwind example using a small toggle button to enable it:
aidenybai commentedon May 2, 2026
v0.5.5 (#437) likely resolves this.
Multiple reports here noted that the workaround was to switch from
react-scantoreact-scan/all-environments. The only meaningful difference between those two entry points is thatall-environmentsbypasses React Scan's production-detection check — and that check had a bug where any single registered production renderer would flip React Scan into "production mode" and disable it (#402). React DevTools doesn't itself register a renderer, but Firefox + DevTools setups can produce a similar misclassification depending on bippy's hook installation order.The production-detection bug is fixed in 0.5.5. Could you re-test on
react-scan@0.5.5using the regularreact-scanimport (not/all-environments) and report back? If it still doesn't work, please attach the result ofscan({ _debug: 'verbose' })so I have logs to work with.