'Umzug storage is not acception database instance value

const dbMigration = new Umzug({ migrations: { glob: '../migrations/*.js', }, context: dbConnect, storage: new SequelizeStorage({ dbConnect, }), logger: console, })

Error:

Argument of type '{ dbConnect: Sequelize; }' is not assignable to parameter of type 'SequelizeStorageConstructorOptions'. Object literal may only specify known properties, and 'dbConnect' does not exist in type 'SequelizeStorageConstructorOptions'.ts(2345)

try to connect umzug with sequelize to run migration.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source