sequelize-cursor-pagination icon indicating copy to clipboard operation
sequelize-cursor-pagination copied to clipboard

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

Open ulknight opened this issue 3 years ago • 1 comments

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

ulknight avatar Aug 25 '22 09:08 ulknight

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.

Kaltsoon avatar Aug 30 '22 05:08 Kaltsoon