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

Compatibility Request: Support for Next.js 14 in next-contentlayer #665

Closed
AcidOP opened this issue Jun 23, 2024 · 6 comments
Closed

Compatibility Request: Support for Next.js 14 in next-contentlayer #665

AcidOP opened this issue Jun 23, 2024 · 6 comments

Comments

@AcidOP
Copy link

AcidOP commented Jun 23, 2024

I'm currently using Next.js 14 and encountered a peer dependency warning when trying to install next-contentlayer:

Running yarn add -D contentlayer next-contentlayer date-fn yields the following error:

warning " > next-contentlayer@0.3.4" has incorrect peer dependency "next@^12 || ^13"

Latest Nextjs 15 is the latest version and this should be updated.

Or maybe there is a workaround?

@Koala0CE
Copy link

I got the same issue here

@lukahukur
Copy link

Repo is dead, if you just starting new project avoid using this package.

@AcidOP
Copy link
Author

AcidOP commented Jul 1, 2024

Seems like this package is dead due to funding issues :(

@ghost
Copy link

ghost commented Jul 3, 2024

Add this to your package.json to override the peer dependency version or use the maintained version of contentlayer called contentlayer2 (#651 (comment)):

"overrides": {

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

}

@Koala0CE
Copy link

Koala0CE commented Jul 3, 2024

Add this to your package.json to override the peer dependency version or use the maintained version of contentlayer called contentlayer2 (#651 (comment)):

"overrides": {

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

}

I used the maintained version, thank you for letting us know about it.

Copy link

stale bot commented Sep 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale label Sep 1, 2024
@stale stale bot closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants