Build production Error #7319
Replies: 4 comments 1 reply
-
How did you install your dependencies? If NPM, you may need to use In general, we suggest PNPM though. Will you give that a shot to see if that helps? |
Beta Was this translation helpful? Give feedback.
-
I used yarn to install my dependencies |
Beta Was this translation helpful? Give feedback.
-
I found the reason of the error, i was using node version 16 and the system was setted for node version 18.
This is my Database URI:
|
Beta Was this translation helpful? Give feedback.
-
Hey @EmanueleGuidotti — that is actually an issue with your database connection string or DB itself, not necessarily with Payload. You should try and use your exact connection string with a Postgres GUI tool like Beekeeper Studio to see if you can connect to your DB using the connection string provided to Payload. If you can, then you know the issue is related to the way you are passing the string to Payload. And if you can't, then you need to correct the connection string. I will convert this to a discussion as this is not an issue with Payload itself, but we're happy to continue to help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to reproduction
No response
Payload Version
"payload": "^2.0.0"
Node Version
node:18.8-alpine
Next.js Version
"next": "13.5.2"
Describe the Bug
When I run
yarn build
I got this error:Reproduction Steps
Clone the payload repo with website template, connect to postgresql, run
yarn && yarn dev
, runyarn build
Adapters and Plugins
No response
Beta Was this translation helpful? Give feedback.
All reactions