Sequelize-typescript: Sequelize-Typescript 1.1.0 compile error against Sequelize 6.3.5

Created on 9 Nov 2020  路  2Comments  路  Source: RobinBuschmann/sequelize-typescript

Tried to create a brand new project against the following versions:

  • sequelize 6.3.5
  • sequelize-typescript 1.1.0
  • typescript 4.0.5

But get a compile error when trying to start up -- cannot find getQueryInterface() method. I ran into this with an older project as well, and downgrading sequelize to 5.22.3 made it work (but of course gives up on the later changes in sequelize itself).

Is there any way to get this to work? I see there were some previous commits that dealt with some issues for sequelize 6, but this one is a blocker for me.

Most helpful comment

I think 1.1.0 is only compatible with sequelize 5
What about
npm install --save sequelize-typescript@next
to install v2 beta

All 2 comments

I think 1.1.0 is only compatible with sequelize 5
What about
npm install --save sequelize-typescript@next
to install v2 beta

[email protected] has been released! :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zebkailash picture zebkailash  路  4Comments

thestrayed picture thestrayed  路  5Comments

YaroslavOsetrov picture YaroslavOsetrov  路  3Comments

ReneHollander picture ReneHollander  路  3Comments

fareshan picture fareshan  路  3Comments