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

Support Next.js 15 Compatibility for next-contentlayer #674

Open
Jeromestein opened this issue Nov 14, 2024 · 3 comments
Open

Support Next.js 15 Compatibility for next-contentlayer #674

Jeromestein opened this issue Nov 14, 2024 · 3 comments

Comments

@Jeromestein
Copy link

Hi Contentlayer team,

I’m trying to use next-contentlayer with a project that relies on Next.js 15, but I encountered a dependency conflict. It seems [email protected] currently specifies a peer dependency on Next.js versions ^12 || ^13, which prevents installation with Next.js 15.

npm install next-contentlayer

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/next
npm error   next@"15.0.2" from the root project

npm error Could not resolve dependency:
npm error peer next@"^12 || ^13" from [email protected]
npm error node_modules/next-contentlayer
npm error   next-contentlayer@"^0.3.4" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps

Steps to Reproduce:
1. Start with a project using Next.js 15.
2. Run npm install next-contentlayer.
3. Observe the dependency conflict.

Request:
Could you update the peer dependencies for next-contentlayer to support Next.js 15? This would help users who are upgrading to or working on projects with the latest Next.js version.

@sikelos13
Copy link

Same issue i gett when i upgraded to Next js 15 and React19 rc.
error "[ Server ] Error: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')"

@TenzDelek
Copy link

use contentlayer2
for ref :https://github.com/timlrx/contentlayer2

@Jeromestein
Copy link
Author

use contentlayer2 for ref :https://github.com/timlrx/contentlayer2

Thank you for the ref, but I just wanna know if they will maintain this project officially to support Next.js 15.

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

3 participants