Internal error: TypeError: Cannot read properties of undefined (reading 'routes') #7654
Unanswered
bognar-dev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @bognar-dev — yes, you need to make sure you run migrations against your production database before deploying new code. You can do this in your Vercel build process by setting your build command to the I would imagine this is the issue. We do not automatically push schema changes for you in production. Here are some docs regarding the variety of ways to run migrations in production: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to reproduction
No response
Payload Version
3.0.0-beta.78
Node Version
20 or higher
Next.js Version
next 15.0.0-canary.87
Describe the Bug
when i try going to the login or /admin page i get a client side error
I used the payload-cms-vercel-deploy template and on initial deploy everything was fine but when i tried running it locally and adding a few new collections it started with this error when accessing the /admin route
Could it be an issue with not using the payload migrate command properly?
Is there any fix to this or is a known issue?
Reproduction Steps
git clone https://github.com/payloadcms/vercel-deploy-payload-postgres
deploy it on vercel
add a new collection Product
run it locally or push it to vercel
get error:
Adapters and Plugins
db-postgres, storage-vercel-blob
Beta Was this translation helpful? Give feedback.
All reactions