urql-graphql / urql-devtools

A tool for monitoring and debugging urql during development
https://formidable.com/open-source/urql/docs/advanced/debugging/#devtools
MIT License
257 stars 11 forks source link

[Runtime error]: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #394

Closed angelozdev closed 2 years ago

angelozdev commented 2 years ago

About

Devtools does not detect a running instance of urql.

Reproduction

  1. Clone this example project
  2. Run yarn install
  3. Run yarn start
  4. Open chrome and navigate to http://localhost:8080
  5. Open the urql devtools panel

    Expected result

    • Extension detects app

    Actual result

    • Extension shows message "Waiting for exchange"

    Stack trace

    Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at la (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:6:58506)
    at Qo (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1044168)
    at Cs (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1090218)
    at yu (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1082960)
    at mu (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1082885)
    at su (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1079915)
    at chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1031556
    at t.unstable_runWithPriority (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1106612)
    at Gi (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1031265)
    at Ji (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1031501)

    Additional info

    environment version
    browser Chrome 69
    urql 0.0.0
    urql devtools 0.0.0
    @urql/devtools 0.0.0
andyrichardson commented 2 years ago

Thanks for the report, there's more info about how to get around this here https://github.com/FormidableLabs/urql-devtools/issues/374