I\'m new to express.
I want to import files to sequelize and declared:
const model = sequelize.import(path.join(__dirname, file))
Check if you have exported the model using old JavaScript syntax.
In my case, it was enough to change the code from:
export default (sequelize, DataTypes) => { ... }
to
module.exports = (sequelize, DataTypes) => { ... }