yarn add -D @nuxtjs/apollo error on Nuxt 3
Environment
- Operating System: Linux
- Node Version: v18.20.2
- Nuxt Version: 3.14.1592
- CLI Version: 3.16.0
- Nitro Version: 2.10.4
- Package Manager: [email protected]
- Builder: -
- User Config: default
- Runtime Modules: @vee-validate/[email protected], @nuxtjs/[email protected]
- Build Modules: -
Describe the bug
Trying to install @nuxtjs/apollo on my brand new Nuxt 3 app since we're migrating from Nuxt 2 and i'm getting this error:
error @apollo/[email protected]: The engine "node" is incompatible with this module. Expected version ">=12.13.0 <17.0". Got "18.20.2"
Since Nuxt 3 requires Node 18+ I don't get why one package in @nuxtjs/apollo is requiring 17-...
Expected behaviour
I should be able to install @nuxtjs/apollo on Nuxt 3
Reproduction
No response
Additional context
No response
Logs
How are you installing it? yarn add @nuxtjs/apollo ?
I found this and it appears to be working on a Nuxt 3 app: https://apollo.nuxtjs.org/getting-started/quick-start though I still need to test this out thoroughly
Ensure that you are installing @nuxtjs/apollo for Nuxt 3 by specifying the tag next.
npm i -D @nuxtjs/apollo@next
NPM default install package with tag latest, which @nuxtjs/apollo latest tag is pointed to Nuxt Apollo for Nuxt 2.