React-native-debugger: Apollo dev tool is broken for Apollo Client 3.0

Created on 3 Dec 2020  路  8Comments  路  Source: jhen0409/react-native-debugger

I just recently upgrade my app from apollo client v2 to v3 and the apollo dev tool keeps crashing by throwing

RNDebuggerWorker.js:2 Uncaught TypeError: r.queryManager.mutationStore.getStore is not a function
    at te.<anonymous> (RNDebuggerWorker.js:2)
    at te.s.emit (RNDebuggerWorker.js:2)
    at RNDebuggerWorker.js:2
    at RNDebuggerWorker.js:2

image

I have done some research and find out this on apollo-client-devtools github readme file

If you are running Apollo Client 2.0, the dev tools require at least [email protected] and [email protected], and you must be running at least version 2.0.5 of the dev tools themselves.

If you are running Apollo Client 3.0, you must be running at least version 2.3.3 of the dev tools.

Can we upgrade apollo-client-devtools to at least version 2.3.3 ?

Most helpful comment

Using 3.0 client as well, and I get exactly nothing in the Apollo dev tools. The cache is empty, even tho I can see the Apollo cache is being leveraged for sure in my app.

@sebastienbarre try passing connectToDevTools: true to the ApolloClient constructor.

All 8 comments

Most def need this. We just ran into the same problem.

Fixed in v0.11.6.

I know this issue has been closed, but I am still seeing this issue. Same error as OP.

I have the most recent version of RND 0.11.6. and my apollo version is using 3.3.6. Any suggestions?

@Legym
The error should be gone once u upgrade to the latest version but u will get another issue
https://github.com/jhen0409/react-native-debugger/issues/565

Using 3.0 client as well, and I get exactly nothing in the Apollo dev tools. The cache is empty, even tho I can see the Apollo cache is being leveraged for sure in my app.

Using 3.0 client as well, and I get exactly nothing in the Apollo dev tools. The cache is empty, even tho I can see the Apollo cache is being leveraged for sure in my app.

@sebastienbarre try passing connectToDevTools: true to the ApolloClient constructor.

@danieldauk thanks, that did the trick.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sagark1510 picture sagark1510  路  37Comments

jgcmarins picture jgcmarins  路  23Comments

freerangenerd picture freerangenerd  路  17Comments

maxhungry picture maxhungry  路  50Comments

AndrewMorsillo picture AndrewMorsillo  路  15Comments