Skip to content

Chrome Extension 1.0.8 throws runtime error #336

Closed

Description

@devth
TypeError: Cannot read properties of undefined (reading 'has')
Image Image

Activity

  1. self-assigned this
    on Mar 15, 2025
  2. pivanov commented on Mar 15, 2025

    @pivanov
    Contributor

    @devth Thank to report this. Is this project poblic (github repo?)?
    If we can reproduce this it will help a lot!

  3. devth commented on Mar 15, 2025

    @devth
    Author

    Nope, sorry. Private next.js app.

  4. devth commented on Mar 15, 2025

    @devth
    Author

    Let me know if there's a way to grab a stacktrace or any other helpful debugging info.

  5. pivanov commented on Mar 15, 2025

    @pivanov
    Contributor

    @devth can you create simple next app with your setup?

  6. devth commented on Mar 15, 2025

    @devth
    Author

    Maybe, but my next.js app where it repros is a large complex 6 year old app so it'll be very hard to replicate!

  7. RobPruzan commented on Mar 17, 2025

    @RobPruzan
    Contributor

    Maybe, but my next.js app where it repros is a large complex 6 year old app so it'll be very hard to replicate!

    Are you using react scan in project or react scan monitoring? If so what version

  8. devth commented on Mar 17, 2025

    @devth
    Author

    I'm not sure. I just installed the Chrome extension from https://github.com/aidenybai/react-scan/blob/main/BROWSER_EXTENSION_GUIDE.md and ran it in my localhost dev server.

    React Scan 1.0.8

  9. RobPruzan commented on Mar 17, 2025

    @RobPruzan
    Contributor

    I'm not sure. I just installed the Chrome extension from https://github.com/aidenybai/react-scan/blob/main/BROWSER_EXTENSION_GUIDE.md and ran it in my localhost dev server.

    React Scan 1.0.8

    Sorry let me clarify, in your project are you already using the react-scan npm package?

  10. devth commented on Mar 17, 2025

    @devth
    Author

    Nope, not using the npm package yet.

  11. huxxhu commented on Aug 5, 2025

    @huxxhu

    I’m experiencing the same issue, only using the Chrome extension.

    Version: 1.0.9
    Chromium: 138.0.7204.101

    When I open the dev tools, I see a runtime error, which also breaks the React Developer Tools.
    Image
    Image

  12. aidenybai commented on May 2, 2026

    @aidenybai
    Owner

    Likely fixed in v0.5.5 via #437.

    The Chrome extension bundles the same react-scan code, and that package was being published with target: 'esnext'. The ?. operators that leaked into the bundle could cause runtime errors in older toolchains and have been spotted as the source of similar Preact/internals errors. The build target was lowered to es2019.

    If you can re-test with the latest extension build (which embeds react-scan@0.5.5) and still hit the same runtime error, please reopen with the stack trace and I'll dig in further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions