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

next-contentlayer installation ERROR in next 14.0.3 on terminal #605

Closed
Sahad-09 opened this issue Nov 20, 2023 · 8 comments
Closed

next-contentlayer installation ERROR in next 14.0.3 on terminal #605

Sahad-09 opened this issue Nov 20, 2023 · 8 comments

Comments

@Sahad-09
Copy link

Sahad-09 commented Nov 20, 2023

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@"14.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12 || ^13" from [email protected]
npm ERR! node_modules/next-contentlayer
npm ERR! next-contentlayer@"^0.3.4" 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!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Sahad\AppData\Local\npm-cache_logs\2023-11-23T07_19_34_982Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\Sahad\AppData\Local\npm-cache_logs\2023-11-23T07_19_34_982Z-debug-0.log

image

This error does not appear when I changed the version to next 13

@anthonyverducci
Copy link

I received this error when I ran npm install contentlayer next-contentlayer date-fns as well.

@Sahad-09
Copy link
Author

@anthonyverducci change the next version to 13.4 it works

@z4nr34l
Copy link
Contributor

z4nr34l commented Nov 22, 2023

@Sahad-09 the point is to use latest possible version - I've made a working (throwing warnings but working) setup with latest next and contentlayer, just force the installation

@Sahad-09
Copy link
Author

@z4nr34l i see, Did people stop maintaining this repo ? It seems to be months ago so there might be some bug.

@mkelley33
Copy link

I would also like to see support for Next.js 14 without having to force the installation.

@fraune
Copy link

fraune commented Nov 23, 2023

This issue is a dupe of #575

In the meantime, try npm install --force

@https777
Copy link

add this in your package.json and then try install once again

"overrides": {
    "next-contentlayer": {
      "next": "$next"
    }
  },

@kachkaev
Copy link

Duplicate of #575. Resolvable by #576

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

7 participants