Open AcidOP opened 2 months ago
I got the same issue here
Repo is dead, if you just starting new project avoid using this package.
Seems like this package is dead due to funding issues :(
Add this to your package.json to override the peer dependency version or use the maintained version of contentlayer called contentlayer2 (https://github.com/contentlayerdev/contentlayer/issues/651#issuecomment-2030335434):
"overrides": {
"next-contentlayer": {
"next": "$next"
}
}
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.
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:Latest Nextjs 15 is the latest version and this should be updated.
Or maybe there is a workaround?