-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example server fails when accessing /admin with Error: Cannot read properties of undefined (reading 'createdAt')
#7126
Comments
I also had this issue yesterday locally when updating to beta 60 but not because of payload but because of updated drizzle-orm and drizzle-kit dependencies. These versions worked for me:
I need these explicit dependencies because of some customs scripts i wrote to check that the migrations added in the PR will apply cleanly against the target branch. Also note that beta59 needs a newer Next.js version: https://github.com/payloadcms/payload-3.0-demo/blob/main/package.json#L32 |
I am running into the same issue, after trying to install the payload 3.0 beta.
|
Link to reproduction
No response
Payload Version
3.0.0-beta.60
Node Version
v20.12.2
Next.js Version
15.0.0-rc.0
Describe the Bug
I tried looking around a bit on whether I could find a fix to this, but I have hard time understanding where to even start. It's expecting some
createdAt
column that's not defined in the object, but the table creation logic is kind of... complex to say the least so no idea where it's supposed to come from.Reproduction Steps
Using pnpm, run
pnpx create-payload-app@beta cms
Enter information, most relevantly
blank
,postgresql
andpostgres://[username]@localhost:5432/cms
(no password, not sure if relevant)Then start the application with
pnpm run dev
, and accesshttp://localhost:3000/admin
.Adapters and Plugins
@payloadcms/db-postgres 3.0.0-beta.60
The text was updated successfully, but these errors were encountered: