Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sakkelaaksonen-siili opened this issue Oct 14, 2021 · 6 comments

Comments

@sakkelaaksonen-siili
Copy link

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: basic-starter@0.5.0
npm ERR! Found: next@11.1.2
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 next-drupal@0.16.0
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 sakkelaaksonen-siili changed the title Running basic example fails due to peer dependency mismatch Running basic example fails due to peer dependency mismatch on Node 15 and Node 16 Oct 14, 2021
@shadcn
Copy link
Collaborator

shadcn commented Oct 14, 2021

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

@shadcn
Copy link
Collaborator

shadcn commented Oct 14, 2021

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

@shadcn
Copy link
Collaborator

shadcn commented Oct 26, 2021

@sakkelaaksonen-siili did this work?

@sakkelaaksonen-siili
Copy link
Author

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: basic-starter@0.5.2
npm ERR! Found: next@11.1.2
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 next-drupal@0.16.2
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
Copy link
Author

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 " > next-drupal@0.16.2" has incorrect peer dependency "next@^10.0.0".

@sakkelaaksonen-siili
Copy link
Author

And now we also have this

vercel/next.js#30078

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants