adamsoffer / next-apollo

React higher-order component for integrating Apollo Client with Next.js
MIT License
482 stars 64 forks source link

Could not resolve dependency for next@"^12.0.10" #116

Closed chkilel closed 2 years ago

chkilel commented 2 years ago

Many thanks for this wonderful package. Could you please update the dependency for next@12.0.10.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: gsa@0.0.0
npm ERR! Found: next@12.0.10
npm ERR! node_modules/next
npm ERR!   next@"^12.0.10" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^9.3.6 || ^10.0.0 || ^11.0.0" from next-apollo@5.0.8
npm ERR! node_modules/next-apollo
npm ERR!   next-apollo@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
han109k commented 2 years ago

just remove node_modules folder and package-lock.json and install with yarn install

topovik commented 2 years ago

npm i next-apollo --force