Deploy Sequelize Nodejs API to Vercel

90 views Asked by At

When I run locally everything works fine, but when I run on vercel:

const db = require('../../models')

Cannot read properties of undefined (reading 'create')","reason":{"errorType":"TypeError"}"

Even though I tested on Vercel, the database connection was successful

image src code

image src code

image src code

image src code

Please help me fix it.

0

There are 0 answers