Skip to content

Failed to import from contentlayer/generated with pnpm #239

Closed

Description

@ahmedelgabri

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…

Screenshot 2022-05-31 at 21 41 06

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

Activity

  1. added this to the 0.2.6 milestone on Jul 5, 2022
  2. schickling commented on Jul 5, 2022

    @schickling
    Collaborator

    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.

  3. ahmedelgabri commented on Jul 5, 2022

    @ahmedelgabri
    Author

    Thanks, @schickling 👍🏼

  4. schickling commented on Jul 8, 2022

    @schickling
    Collaborator

    This should be addressed with the 0.2.6 release. 🎉

  5. ahmedelgabri commented on Jul 8, 2022

    @ahmedelgabri
    Author

    I quickly updated & tried this and it seems to be working fine 🎉 thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpkg/next-contentlayer

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions