next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Running basic example fails due to peer dependency mismatch on Node 15 and Node 16

Open sakkelaaksonen-siili opened this issue 4 years ago • 6 comments

running npx create-next-app -e https://github.com/chapter-three/next-drupal-basic-starter

gives the following error on linux (Ubuntu/Mint), on Node 16

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR!   next@"^11.1.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.0" from [email protected]
npm ERR! node_modules/next-drupal
npm ERR!   next-drupal@"^0.16.0" 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.
npm ERR! 

sakkelaaksonen-siili avatar Oct 14 '21 07:10 sakkelaaksonen-siili

Ah. I'll fix this. Thanks for catching this.

shadcn avatar Oct 14 '21 12:10 shadcn

@sakkelaaksonen-siili can you give this a try again?

shadcn avatar Oct 14 '21 20:10 shadcn

@sakkelaaksonen-siili did this work?

shadcn avatar Oct 26 '21 12:10 shadcn

Nope. Still gives me this. Using node 16.12 on linux mint (ubuntu)

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR!   next@"^11.1.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.0" from [email protected]
npm ERR! node_modules/next-drupal
npm ERR!   next-drupal@"^0.16.2" 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.
npm ERR! 

sakkelaaksonen-siili avatar Oct 28 '21 16:10 sakkelaaksonen-siili

Also worth noting that I get this whenever I run yarn or npm install. Solving this I think should also solve the original bug report.

warning " > [email protected]" has incorrect peer dependency "next@^10.0.0".

sakkelaaksonen-siili avatar Oct 28 '21 17:10 sakkelaaksonen-siili

And now we also have this

https://github.com/vercel/next.js/issues/30078

So better patch it up to 12 for node17 support. :D

sakkelaaksonen-siili avatar Oct 28 '21 17:10 sakkelaaksonen-siili