-
Notifications
You must be signed in to change notification settings - Fork 208
Description
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 3.18.1
- CLI Version: 3.27.0
- Nitro Version: 2.12.4
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, devServer, typescript, runtimeConfig, modules, googleFonts, gtag, apollo, site, vite, build, css, app, compatibilityDate
- Runtime Modules: @nuxtjs/[email protected], @nuxt/[email protected], @pinia/[email protected], @nuxt/[email protected], @nuxtjs/[email protected], @vueuse/[email protected], [email protected], @nuxtjs/[email protected]
Describe the bug
When using @nuxtjs/apollo ^5.0.0-alpha.14 with Apollo Client ^3.14.0, a warning appears in the server console during SSR:
ssr:warn An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.14.0%22%2C%22message%22%3A104%2C%22args%22%3A%5B%22ApolloClient%22%2C%22connectToDevTools%22%2C%22Please%20use%20%60devtools.enabled%60%20instead.%22%5D%7D at node_modules/ts-invariant/lib/invariant.js at Function.warn (node_modules/@apollo/client/utilities/globals/invariantWrappers.js) at node_modules/@apollo/client/utilities/deprecation/index.js
This is triggered by Apollo Client’s internal deprecation of the connectToDevTools option, which was replaced with the new devtools.enabled syntax starting in Apollo Client v3.14.
The warning does not break anything, but clutters SSR logs.
Expected behaviour
- Set latest options and syntax for Apollo Client
- No warnings on Nuxt
Reproduction
No response
Additional context
I've created a Pull Request for solving the issue, here: