Skip to content
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

sequelize-typescript 2.0.0-beta.0 + sequelize 6.3.4 associations bug #828

Closed
oktapodia opened this issue Aug 19, 2020 · 2 comments
Closed

Comments

@oktapodia
Copy link

Versions

  • sequelize: 6.3.4
  • sequelize-typescript: 2.0.0-beta.0
  • typescript: 3.9.7

I'm submitting a ...

[x] bug report
[ ] feature request

Actual behavior:

Using the relations does not seem to work with that version, getting the error on all relations

node_modules/sequelize-typescript/dist/model/shared/model-class-getter.d.ts:2:40
2 export declare type ModelClassGetter = (returns?: void) => typeof Model;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expected behavior:

The same code is perfectly working on the version 1~ and sequelize 5~

Steps to reproduce:

You can try with the https://github.com/RobinBuschmann/sequelize-typescript-example with configuring both versions

Related code:

insert short code snippets here
@jgburet
Copy link

jgburet commented Oct 13, 2020

already reported #813

@theoludwig
Copy link
Contributor

Duplicate of #813.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants