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

Cannot find module 'sequelize/types/lib/hooks' or its corresponding type declarations. #1198

Closed
1 of 2 tasks
hcancelik opened this issue Feb 8, 2022 · 1 comment
Closed
1 of 2 tasks

Comments

@hcancelik
Copy link

Issue

Getting this error while building a project.

../node_modules/sequelize-typescript/dist/hooks/shared/hook-meta.d.ts(2,32): error TS2307: Cannot find module 'sequelize/types/lib/hooks' or its corresponding type declarations.

Not 100% sure but it seems like with this commit the files are no longer under lib directory.

sequelize/sequelize@6b8fbb4

Versions

  • sequelize: 6.16.0
  • sequelize-typescript: 2.1.2
  • typescript: 4.5.4

Issue type

  • bug report
  • feature request

I apologize for removing the remaining comments from the issue template.

@smouchsiadis
Copy link

smouchsiadis commented Feb 8, 2022

The same is happening to me. I am using nest and I followed this guide

I also have these dependencies installed.

npm install --save-dev @types/node @types/validator
npm install sequelize reflect-metadata sequelize-typescript

Please look into it

EDIT: For now, if anyone needs the fix asap, rolling back to [email protected] helped

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