-
-
Notifications
You must be signed in to change notification settings - Fork 28
Cannot read property 'getQueryInterface' of undefined #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @pronitdas, at the moment only |
sequelize/sequelize-typescript#807 they did upgrade to v6.1.1. Let me know if i could help in upgrading. |
Thanks for the update, but I am afraid they are still in beta for v6 compatibility. I'll wait a stable npm release before to start working on an upgrade |
I have worked around this by changing my package.json entry to: "sequelize": "5.22.3", Then nom install |
Sequelize v6.3.5 supported now. |
ts-node version 8.3.0
typescript version 3.8.3
node nersion 14.4.0
sequelize version 6.2.4
sequelize-typescript version 1.1.0
`/home/pronit/.nvm/versions/node/v14.3.0/lib/node_modules/sequelize/lib/model.js:55
return this.sequelize.getQueryInterface();
^
TypeError: Cannot read property 'getQueryInterface' of undefined
at Function.get queryInterface [as queryInterface] (/home/pronit/.nvm/versions/node/v14.3.0/lib/node_modules/sequelize/lib/model.js:55:27)
at isFunctionMember (/home/pronit/.nvm/versions/node/v14.3.0/lib/node_modules/sequelize-typescript/dist/model/model/model.js:99:25)
at /home/pronit/.nvm/versions/node/v14.3.0/lib/node_modules/sequelize-typescript/dist/model/model/model.js:96:5
at Array.filter ()
at Object. (/home/pronit/.nvm/versions/node/v14.3.0/lib/node_modules/sequelize-typescript/dist/model/model/model.js:95:6)
`
The text was updated successfully, but these errors were encountered: