-
Notifications
You must be signed in to change notification settings - Fork 285
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
Error when defining relationships (BelongsTo, ForeignKey, HasMany etc) #821
Comments
Hi @Evanion, this is the same issue at lot of people are having here. I have commented on issue #813 this:
@RobinBuschmann any thoughts on that? |
I had this same issue this morning and cross-compared my current project against one that was still working. I noticed I had a few modules with later versions, especially Typescript, Sequelize itself, and some of the @types incudes, so I downgraded them and this resolved the problem. For reference, this is working for me. Later versions of Sequelize and other deps are not:
|
Yeah, having similar issue. Downgraded from v 6 to "sequelize": "^5.22.2" and error disappeared. |
+1 Getting the same error. Downgrading to |
Same here, a fix would be great |
Versions
I'm submitting a ...
[x ] bug report
[ ] feature request
Actual behavior:
I'm getting a type error when I try and define a relationship between Models
Expected behavior:
Being able to define relationships as per the docs and examples
Related code:
The text was updated successfully, but these errors were encountered: