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
{{ message }}
Repository navigation
TypeScript: The data type in the "sequelize/types/lib" folder is different from the data type in the "sequelize/dist/lib" folder #13811
The data type in the "sequelize/types/lib" folder is different from the data type in the "sequelize/dist/lib" folder
This happened when I updated from 6.6.2 to version 6.12.2. The data type in the "Lib" folder is different from the data type in the "Types" folder.
Currently I am using:
NestJS: v7.6.15
NodeJS: v16.13.0
Config in file "tsconfig", I also turned off "strictFunctionTypes":
Yes that's an issue that occurred during the TypeScript Migration. Sorry about that, it was an unforeseen breaking change :/
You're right though: completely avoid importing from sequelize/types/* (or sequelize/lib). Only ever import from sequelize and things should work fine.
Activity
luongtech commentedon Dec 23, 2021
Oh! I fixed it.
I fixed them, just replaced the whole "sequelize/types" to "sequelize"
ephys commentedon Dec 23, 2021
Yes that's an issue that occurred during the TypeScript Migration. Sorry about that, it was an unforeseen breaking change :/
You're right though: completely avoid importing from
sequelize/types/*(orsequelize/lib). Only ever import fromsequelizeand things should work fine.