Next.js Discord

Discord Forum

running locally fine but deployment failed due to pg package.

Unanswered
Beauceron posted this in #help-forum
Open in Discord
Avatar
BeauceronOP
I wrote my application on my computer locally using posgresql and it's running fine locally. When I tried to deploy it on Vercel, it shows me an error.

Error: Please install pg package manually
at ConnectionManager._loadDialectModule (/var/task/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:55:15)
at new ConnectionManager (/var/task/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:15:24)
at new PostgresDialect (/var/task/node_modules/sequelize/lib/dialects/postgres/index.js:13:30)
at new Sequelize (/var/task/node_modules/sequelize/lib/sequelize.js:194:20)
at 6881 (/var/task/.next/server/chunks/6881.js:85:17)
at webpack_require (/var/task/.next/server/webpack-api-runtime.js:25:42)
at 4306 (/var/task/.next/server/pages/api/v1/products.js:31:65)
at webpack_require (/var/task/.next/server/webpack-api-runtime.js:25:42)
at webpack_exec (/var/task/.next/server/pages/api/v1/products.js:176:39)
at /var/task/.next/server/pages/api/v1/products.js:177:67
Error: Runtime exited with error: exit status 1
Runtime.ExitError

Can anyone help me on this? Thanks in advance.

0 Replies