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

Module '"sequelize"' has no exported member 'Attributes'. #57

Open
ulknight opened this issue Aug 25, 2022 · 1 comment
Open

Module '"sequelize"' has no exported member 'Attributes'. #57

ulknight opened this issue Aug 25, 2022 · 1 comment

Comments

@ulknight
Copy link

Sorry for my english. :)

Project on TypeScript. On boostrap I catch an error:

node_modules/sequelize-cursor-pagination/types.d.ts:1:30 - error TS2305: Module '"sequelize"' has no exported member 'Attributes'.

1 import { Model, FindOptions, Attributes } from 'sequelize';

Sequelize - 6.11.0. Also I check it on latest 6.21.0 version.
Sequelize-cursor-pagination - 3.0.2

Suggestion:
Change Attributes -> ModelAttributes

@Kaltsoon
Copy link
Owner

Using Attributes seems to be the suggested way based on the docs. Did the docs mention that ModelAttributes is more suitable for this use case?

I have updated the development dependency version of sequelize to 6.21.4 and at least the latest build has no errors.

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

2 participants