I'm looking more for pointers than a fix because following the quick start works fine (even with pnpm), so this might be my own issue. I'm getting this error with pnpm, yarn works fine though…

I went through the configs multiple times, and everything seems to be fine, so I can't really put my hand on the issue…
Running pnpm contentlayer build works fine though, but once you delete .contentlayer folder it doesn't get automatically generated again.
You can see my contentlayer branch here https://github.com/ahmedelgabri/gabri.me/tree/contentLayer
I'm looking more for pointers than a fix because following the quick start works fine (even with
pnpm), so this might be my own issue. I'm getting this error withpnpm,yarnworks fine though…I went through the configs multiple times, and everything seems to be fine, so I can't really put my hand on the issue…
Running
pnpm contentlayer buildworks fine though, but once you delete.contentlayerfolder it doesn't get automatically generated again.You can see my contentlayer branch here https://github.com/ahmedelgabri/gabri.me/tree/contentLayer