Skip to content

"Could not find client" connectToDevTools option is deprecated #1678

@AlexiaAcevedo

Description

@AlexiaAcevedo

Intended outcome:

I am trying to configure my apolloClient so that I can use Apollo Client DevTools. However, connectToDevTools option is now deprecated.

devtools: {
    enabled: true,
  },

Should be the new option passed into the client object as per ApolloClient Docs

Actual outcome:

Ultimately, devTools cannot find the client even when I set if I set

if (typeof window !== 'undefined') {
  ;(window as any).__APOLLO_CLIENT__ = apolloClient
}

Making the extension unusable.

Image

How to reproduce the issue:

To reproduce the issue, update to versions mentioned below and Apollo Client (Web) - v3. I am running 3.12.8. Download extension and try to configure your application.

Desktop (please complete the following information):

  • OS: macOS 14.6.1 (23G93)
  • Browser: Chrome
  • Browser version: 128.0.6613.120
  • Extension version: 4.19.13

Metadata

Metadata

Assignees

No one assigned

    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