TypeError: sequelize.import is not a function
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes)
TypeError: sequelize.import is not a function
const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes)
defineCall is not a function at Sequelize.import sequelize.js
//BASICALLY DON'T ADD EMPTY FILES TO YOUR MODELS FOLDER
/* I experienced this issue, the reason was because I added a file on my models directory
that is not a model, just some code that's meant to do some stuff.
I suppose we can only add model files on the models directory,
as index.js checks every file in the whole directory. */
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us