Answers for "TypeError: sequelize.import is not a function"

0

TypeError: sequelize.import is not a function

const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes)
Posted by: Guest on March-11-2021
0

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. */
Posted by: Guest on May-06-2020

Code answers related to "TypeError: sequelize.import is not a function"

Browse Popular Code Answers by Language