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
{{ message }}
Repository navigation
Failed to import from contentlayer/generated with pnpm #239
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.
Thanks a lot for opening this issue and providing a repro (and bonus points for using Nix 💯). This uncovered indeed a bug in the Contentlayer Next.js plugin and will be fixed in the upcoming release.
Activity
schickling commentedon Jul 5, 2022
Thanks a lot for opening this issue and providing a repro (and bonus points for using Nix 💯). This uncovered indeed a bug in the Contentlayer Next.js plugin and will be fixed in the upcoming release.
next-contentlayer: Fix dev mode detection when using pnpm (#239)
ahmedelgabri commentedon Jul 5, 2022
Thanks, @schickling 👍🏼
schickling commentedon Jul 8, 2022
This should be addressed with the
0.2.6release. 🎉ahmedelgabri commentedon Jul 8, 2022
I quickly updated & tried this and it seems to be working fine 🎉 thanks again!