DEV Community

Discussion on: How to setup Contentlayer in your Next.js app?

Collapse
 
yodev profile image
Yoman • Edited

Hi i have tried to use it and in vercel while deployment i am facing a issue as below
Hi i have tried to use it and in vercel while deployment i am facing a issue as below

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
yodev profile image
Yoman

Thanks for the response!
you can find it here.

github.com/achuthhadnoor/www/blob/...

Thread Thread
 
imadatyat profile image
Imad Atyat-Allah

Your next.config.js looks fine, I think you should open an issue in contentlayer repository.

Thread Thread
 
yodev profile image
Yoman

looks like you are using the same version of the next-contentlayer , contentlayer , v0.0.33
build works fine in local
but when i deploy to vercel it fails with the error

Thread Thread
 
imadatyat profile image
Imad Atyat-Allah

Yes, That's a weird error I have never faced something similar.

Thread Thread
 
yodev profile image
Yoman

So the issue was with the node version on vercel the required was >=14 but i had 12... When i upgraded then it worked