shadcn-ui / taxonomy

An open source application built using the new router, server components and everything new in Next.js 13.
https://tx.shadcn.com
MIT License
18.24k stars 2.54k forks source link

Contentlayer/generated initiatlization issues + fix #122

Open tylergalpin opened 1 year ago

tylergalpin commented 1 year ago

No discussion tab, so ¯_(ツ)_/¯

For those who, like me, are struggling to get contentlayer to generate the articles into the .contentlayer/generated folder, you'll need to run pnpm build or npm run build in the VS code terminal instead of Apple's Terminal.app. No clue why this works in vscode but not my normal terminal; see this post on stackoverflow from someone who experienced a similar issue.

cobbvanth commented 1 year ago

Bumping this with the message Contentlayer config change detected. Updating type definitions and data... incase anyone else gets stuck waiting on that...

For some bizarre reason, you must first run npm run build in the VSCode terminal, as it DOES NOT work in iTerm2 or Mac's built in terminal...

Thanks @tylergalpin for putting this up, I lost many hours

konsalex commented 11 months ago

Facing exactly the same issue, took pretty long time to figure this out, and happened suddenly. Any clue why this may be happening?

Ref here: https://github.com/contentlayerdev/contentlayer/issues/415#issuecomment-1747539137

raaynaldo commented 9 months ago

Bumping this with the message Contentlayer config change detected. Updating type definitions and data... incase anyone else gets stuck waiting on that...

For some bizarre reason, you must first run npm run build in the VSCode terminal, as it DOES NOT work in iTerm2 or Mac's built in terminal...

Thanks @tylergalpin for putting this up, I lost many hours

Thanks for this info. I experienced the same thing.