You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are actually two errors that I am facing one of which is with the @foreignkey decorator and the other being the @BelongsTo decorator.
Foreign key error being
Property 'isInitialized' is missing in type 'typeof Product' but required in type 'typeof Model'.
BelongsTo error being
No overload matches this call.
Overload 1 of 2, '(associatedClassGetter: ModelClassGetter, foreignKey?: string | undefined): Function', gave the following error.
Type 'typeof Product' is not assignable to type 'typeof Model'.
Overload 2 of 2, '(associatedClassGetter: ModelClassGetter, options?: BelongsToOptions | undefined): Function', gave the following error.
Type 'typeof Product' is not assignable to type 'typeof Model'
Expected behavior:
I followed the documentation of how to define these decorators, this should work
Versions
I'm submitting a ...
[x ] bug report
[ ] feature request
Actual behavior:
There are actually two errors that I am facing one of which is with the @foreignkey decorator and the other being the @BelongsTo decorator.
Expected behavior:
I followed the documentation of how to define these decorators, this should work
Steps to reproduce:
Here is the application I am working on https://github.com/Johnathon332/FirstNodeApp
Related code:
The text was updated successfully, but these errors were encountered: