Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

IDE error on findByID

default discord avatar
snakemastr508last year
4

When using findByID, I get the following error in my IDE. IDE is Intellij.



How do I resolve this error?



Anyone have any ideas?



Still no one?

  • default discord avatar
    tyteen4a03last year

    can't reproduce from here, are you on latest payload version?

  • default discord avatar
    ithomanlast year

    Is it possible that you need to generate:types and rebuild the CollecitonSlug? I've run into things like that... (sorry that may be so obvious you already discounted it, but have to ask).

  • default discord avatar
    nils06488last year

    👍

    @835935135815041075

    , would be next step, too.

    pnpm payload generate:db-schema
  • default discord avatar
    snakemastr508last year

    Aaah I feel so stupid. After rechecking every step I noticed my Node Interpreter being set at v16. The IDE was still set at the node version I installed before switching to NVM.


    This is my first project in TypeScript so I was not very aware of these settings.



    Thank you so much for replying, even though those were the things I indeed tried to no avail.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.