Skip to content

Issue: React DevTools not detecting the application

Error message

                React DevTools extension shows 'This page doesn't appear to be using React'
              

Quick summary

The React DevTools browser extension cannot detect React on the page, preventing component inspection.

Why this happens

  • Running a production build where React is minified

  • React DevTools extension not installed

  • React version too old for the DevTools version

  • App rendered in an iframe or shadow DOM

Minimal example

✗ Broken code
# Production build - DevTools limited
npm run build && npm run preview
✓ Fixed code
# Development build - full DevTools support
npm run dev

Development mode includes the hooks DevTools needs. Production builds strip this for performance.

How to diagnose

  • Check if React DevTools extension is installed and enabled

  • Verify you're running a development build (npm run dev)

  • Check the React version in package.json

How to fix

  • Run the app in development mode

  • Install/enable the React DevTools browser extension

  • Update React to a version compatible with DevTools

  • Use the standalone React DevTools: npx react-devtools

How to prevent

  • Always develop in development mode

  • Keep React and DevTools updated

Related Resources

Related Glossary

Related Lessons

← Back to language