next-drupal
next-drupal copied to clipboard
Running basic example fails due to peer dependency mismatch on Node 15 and Node 16
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!
Ah. I'll fix this. Thanks for catching this.
@sakkelaaksonen-siili can you give this a try again?
@sakkelaaksonen-siili did this work?
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!
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".
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