sadmann7 / skateshop

An open source e-commerce skateshop build with everything new in Next.js.
https://skateshop.sadmn.com
MIT License
5.1k stars 731 forks source link

Contentlayer Error #59

Open jannikstdl opened 11 months ago

jannikstdl commented 11 months ago

Hi,

i did everythig in the readme but after running "pnpm run dev" i get this error:

./src/app/(lobby)/[...slug]/page.tsx:2:0 Module not found: Package path ./generated is not exported from package /Users/jannik/Projects/bytelanede/bytelanede/node_modules/contentlayer (see exports field in /Users/jannik/Projects/bytelanede/bytelanede/node_modules/contentlayer/package.json) 1 | import { notFound } from "next/navigation"

2 | import { allPages } from "contentlayer/generated" 3 | 4 | import "@/styles/mdx.css" 5 |

https://nextjs.org/docs/messages/module-not-found

ENV Variables are all set.

sadmann7 commented 11 months ago

Try removing node_modules, .next, .contentlayer. And update the packages.