Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtools: TypeError: Cannot read property '0' of undefined #334

Closed
kmrachko opened this issue Feb 15, 2021 · 2 comments
Closed

Devtools: TypeError: Cannot read property '0' of undefined #334

kmrachko opened this issue Feb 15, 2021 · 2 comments
Labels
No changelog Do not show on changelog

Comments

@kmrachko
Copy link

urql version & exchanges:

    "@urql/core": "^2.0.0",
    "@urql/devtools": "^2.0.3",
    "@urql/exchange-auth": "^0.1.2",
    "@urql/exchange-graphcache": "^4.0.0",
    "urql": "^2.0.0",

Urql devtools Chrome plugin: Version 2.3.1

Steps to reproduce

  1. Open Chrome devtools -> "Urql" tab
  2. Select "Events" in the top tabs bar

Expected behavior
Events are shown

Actual behavior
Error is displayed:

TypeError: Cannot read property '0' of undefined
    at chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:8:38140
    at ht (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1200793)
    at e.generateAndInjectStyles (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1202428)
    at chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1203759
    at jt (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1203826)
    at TimelineSourceIcon (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1204939)
    at qo (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1041137)
    at Ia (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1049093)
    at gs (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1089624)
    at cu (chrome-extension://mcfphkbpmkbeofnkjehahlmidmceblmm/panel.js:2:1079924)

Note: everything was working fine until I updated dependencies to latest versions, specifically 2.x.x.

@kitten kitten transferred this issue from urql-graphql/urql Feb 15, 2021
@Undistraction
Copy link

Undistraction commented Feb 18, 2021

Seeing the same thing after upgrading to 2.x. Also note that I don't get anything in the Explorer tab, despite the app making a number of queries. Looks like it connects with the exchange but I get nothing other than:

Responses will be shown here
Make a new request or refresh the page

"urql": "^2.0.1"
"@urql/core": "^2.0.0",
"@urql/devtools": "^2.0.3",
"@urql/exchange-auth": "^0.1.2",
"@urql/exchange-graphcache": "^4.0.0",
  • Edge 88.0.705.68 (Official build) (64-bit)
  • Chrome 88.0.4324.182 (Official Build) (x86_64)

@andyrichardson
Copy link
Collaborator

Thanks for the report - I'm going to close this in favor of #330

@andyrichardson andyrichardson added the No changelog Do not show on changelog label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No changelog Do not show on changelog
Projects
None yet
Development

No branches or pull requests

3 participants