Closed pat-mw closed 2 weeks ago
I am experiencing the same issue. Working to add payload to an existing NextJS project, and followed the manual steps in docs.
any luck @macamp0328 ?
any luck @macamp0328 ?
Hey @pat-mw, since I was hitting a wall, I had put the personal project down for a bit. I will spin it back up in the next few days and see what I can figure out.
This possibly could have happened because you installed @payloadcms/db-postgres
for 2.0 which uses old import payload/versions
, you need to install with the beta
tag
pnpm add @payloadcms/db-postgres@beta
.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Payload Version
3.0.0-beta.90
Node Version
v20.12.2
Next.js Version
^15.0.0-rc.0
Describe the Bug
./node_modules/@payloadcms/db-postgres/dist/createGlobalVersion.js:12:1
Import trace for requested module:
The issue is a missing export in the
package.json
file for the latest payload dist I tried to add it below but this didn't work for me.Any ideas?
Reproduction Steps
Set up boilerplate t3 stack project Upgrade to Next15 Install payload dependencies / use the cli Set up DB Connection :
NOTE: Here I am seeing another error: Type 'PostgresAdapterResult' is not assignable to type 'DatabaseAdapterResult'.ts(2322) types.d.ts(580, 5): The expected type comes from property 'db' which is declared here on type 'Config'
I tried to manually typecast but they dont overlap
Adapters and Plugins
none