You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Btw. Visual Studio Code shows me a warn for "contentlayer/generated" (Cannot find module 'contentlayer/generated' or its corresponding type declarations.ts(2307)) - but as said running "yarn run dev" works fine.
I tried to add contentlayer dev before the build comman ("build": "contentlayer dev & next build") but that did not help either.
My package.json uses:
"next-contentlayer": "^0.3.3",
"contentlayer": "^0.3.3",
and yarn lock uses contentlayer in version 0.3.4
Any ideas how I can fix or debug this?
The text was updated successfully, but these errors were encountered:
I get the following error on Vercel during the build of a production server - however it works on my local machine in dev and prod mode.
I used the "@/.contentlayer/generated" from Vercel's example https://github.com/shadcn/next-contentlayer/blob/main/app/page.tsx but even with "contentlayer/generated" it works on my machine but not vercel.
Btw. Visual Studio Code shows me a warn for "contentlayer/generated" (Cannot find module 'contentlayer/generated' or its corresponding type declarations.ts(2307)) - but as said running "yarn run dev" works fine.
I tried to add
contentlayer dev
before the build comman ("build": "contentlayer dev & next build") but that did not help either.My package.json uses:
"next-contentlayer": "^0.3.3",
"contentlayer": "^0.3.3",
and yarn lock uses contentlayer in version 0.3.4
Any ideas how I can fix or debug this?
The text was updated successfully, but these errors were encountered: