Open LordSimal opened 2 months ago
Are there any workarounds?
Payload should handle converting dates for you. There may have been a regression in the recent db work made to get ready to release sqlite.
A workaround is to send any dates as string by calling .toISOString()
.
EDIT: I didn't notice before that this is for v2. I bet it is fixed in v3. @JessChowdhury if this is something you want to take, look at the recent changes in https://github.com/payloadcms/payload/blob/beta/packages/drizzle/src/transform/write/traverseFields.ts#L544
Try to update node and npm to latest version
Link to reproduction
No response
Describe the Bug
When trying to create a fresh installation of the payload app with the demo page preset it can't import/seed the postgresql database.
To Reproduce
pnpx create-payload-app@latest .
payload-demo
project templatePostgreSQL (beta)
databaseyarn
topnpm
in my package.jsonpnpm run build
This will lead to the following output/error:
I am on PostgreSQL 16.3 and NodeJS 20.15.0
Payload Version
2.23.1
Adapters and Plugins
db-postgres