Sequelize.define() is not a function?
问题 Trying to play around with Sequelize in a node.js webserver. I have initialised the Sequelize connection pool in index.js like so index.js const config = require('./config/config'); const app = require('./config/express'); const Sequelize = require('sequelize'); const sequelize = new Sequelize(config.mysql.database, config.mysql.user, config.mysql.pass, { host: config.mysql.host, dialect: 'mysql', operatorsAliases: false, pool: { max: 5, min: 0, acquire: 30000, idle: 10000 }, }); sequelize