-
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
Support for Sequelize v6 #804
Comments
#787 should resolve this |
any idea how to fix this |
@sarfarazansari I'm currently working around this by using v5 of sequelize. |
Any progress on this issue? |
For what its worth, I am still having issues with |
@Bialogs can you try recent |
@lukashroch I'm working with @Bialogs on this one, just tried with the latest 2.0.0-beta.1 and still received type errors. Details
|
Hello, The same for me i'm getting this error with the below config |
@rbclark, check out #865, there is a breaking change how to define models for V6. This is also described in official sequlize TS docs section. @chorfa007, use 2.0.0-beta.1 for V6, 1.1.0 is V5 only and follow link above how to upgrade. |
@lukashroch Typeerrors are still ocurring, I literally copied and pasted the model code from the docs you linked alongside 2.0.0-beta.1 & 6.3.5
|
@niloyc I've only thoroughly tested "less strict" typings, which are the same equivalent of what already was present in v5 or < v6.2. I've already encountered other weird issues with new v6.2+ typings, looks like they will need more tweaking, so I left it for a while... Though, just converted one of our project with minimal effort to less-strict types and so far no issues. Looks like #868 PR is addressing some of these issues you're having. You could give it a try and review. |
I am trying log custom exception in angular using TS but not catch block is not executing getting following error LoadList(): Observable<ABC[]> {
} i am getting below error and catch block is not working |
|
This versions aren't compatible: |
I'm having issues with this too:
EDIT: For anyone trying to fix this, I was coming from sequelize v5 and sequelize-typescript 1.1.0 when I upgraded I did the following to solve the type errors I was having: previously:
turns to just:
thanks for this awesome library 🎉 |
I gonna give a try. |
@deviantfero it worked 🎉🎉🎉 I have like 100 entities, no joke, it was epic easy but tedious, but it worked!! i have updated the library, yay! |
@kuriel-trivu that's great, if someone could explain why this works that would be really helpful though 😅, I don't want to find out I'm missing some type declaration correctness down the line |
"@nestjs/sequelize": "^0.2.0", worked for me |
Versions
I'm submitting a ...
[x] bug report
[ ] feature request
Details:
There is a new major Sequelize release v6 that changes Sequelize's internals quite a bit (for example removing Bluebird, yey!)
These are the types errors that I get running it against this version:
The text was updated successfully, but these errors were encountered: