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

TypeError: Cannot read properties of undefined (reading 'getObservableQueries') #11192

Closed
darr1s opened this issue Sep 4, 2023 · 7 comments · Fixed by #11193
Closed

TypeError: Cannot read properties of undefined (reading 'getObservableQueries') #11192

darr1s opened this issue Sep 4, 2023 · 7 comments · Fixed by #11193

Comments

@darr1s
Copy link

darr1s commented Sep 4, 2023

Issue Description

I am currently facing this issue without any what could go wrong. There isn't precaution or hints.

My apollo factory.
https://dpaste.org/qA6F4

image

*(Sorry for not able to create a reproduction link. This is really an unique occurence)

Link to Reproduction

https://dpaste.org/qA6F4

Reproduction Steps

No response

@simplecommerce
Copy link

darr1s

I have the same issue after updating my @apollo/client to the latest version.
For some reason it seems to be related to connectToDevTools.
If I comment it, it works, if I leave it there, it crashes on the client side.
It works if I remove the browser extension and leave it there.
But if I install the browser extension while the option is there, it crashes again.

No idea why.

@darr1s
Copy link
Author

darr1s commented Sep 4, 2023

Thanks. Temporarily downgrading to 3.8.0.

@jerelmiller
Copy link
Member

@simplecommerce we added a new registration mechanism between the client and Apollo DevTools to try and make the connection a bit more robust, but looks like we might need to look at the change a bit closer. Appreciate that nugget of info as that should make it easier for us to narrow down.

@darr1s thanks for reporting this!

@phryneas
Copy link
Member

phryneas commented Sep 5, 2023

I think this is fixed in #11193
Could you please test this build and report back if it fixes the problem for you?

npm i @apollo/client@0.0.0-pr-11193-20230905102117

@simplecommerce
Copy link

Seems to work for me on my instance. I did the test by enabling the dev tools and then no errors appeared, I put the latest version back and it appeared again, so it seems ok for me.

@jerelmiller
Copy link
Member

Hey all 👋

A fix for this has been published in v3.8.3. Thanks for reporting the issue!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants