Error: cannot connect to Postgres. Details: Cannot read properties of undefined (reading 'setTypeParser') #7974
Open
Description
Link to reproduction
No response
Environment Info
> payload-catalyst@1.0.0 payload /Users/y/Desktop/payload-catalyst
> cross-env NODE_OPTIONS=--no-deprecation payload "info"
Binaries:
Node: 20.12.1
npm: 10.5.0
Yarn: N/A
pnpm: 8.14.2
Relevant Packages:
payload: 3.0.0-beta.96
next: 15.0.0-canary.104
@payloadcms/email-nodemailer: 3.0.0-beta.96
@payloadcms/graphql: 3.0.0-beta.96
@payloadcms/next/utilities: 3.0.0-beta.96
@payloadcms/plugin-cloud: 3.0.0-beta.96
@payloadcms/richtext-lexical: 3.0.0-beta.96
@payloadcms/translations: 3.0.0-beta.96
@payloadcms/ui/shared: 3.0.0-beta.96
react: 19.0.0-rc-06d0b89e-20240801
react-dom: 19.0.0-rc-06d0b89e-20240801
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:32:11 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6030
Available memory (MB): 36864
Available CPU cores: 12
Describe the Bug
Get this error upon starting a blank project with vercel postgres:
[23:37:03] ERROR: Error: cannot connect to Postgres. Details: Cannot read properties of undefined (reading 'setTypeParser')
Reproduction Steps
-> pnpm create-payload-app@beta
-> Choose blank project
-> Enter vercel postgres database uri
-> pnpm dev
Also I think the .env doesn't automatically update with the url given to the CLI tool - though the issue persists even when I manually update the env variable.
Adapters and Plugins
db-vercel-postgres
Activity