Hi all! I'm making my way to migrate to Payload 3.x-beta, but I keep running into this error:
Cannot find module @payload-config or its corresponding type declarations.
on my admin route. I also see a TS error
TS2307: Cannot find module payload/config or its corresponding type declarations.
, when I try to install
pnpm i payload/config
:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Thank you!
This is indicative of not having this path defined in your tsconfig.json.
Take a look at how the demo repo has this configured:
https://github.com/payloadcms/payload-3.0-demo/blob/main/tsconfig.json#L29-L31You should reference this repo for any troubles you have
Star
Discord
online
Get dedicated engineering support directly from the Payload team.