aravindnc / mongoose-aggregate-paginate-v2

A cursor based custom aggregate pagination library for Mongoose with customizable labels.
MIT License
131 stars 23 forks source link

Could not find a declaration file for module #27

Closed amapy003xamk closed 2 months ago

amapy003xamk commented 4 years ago

Trying to use this package in my project but I get error: "'@types/mongoose-aggregate-paginate-v2@latest' is not in the npm registry. Try npm install @types/mongoose-aggregate-paginate-v2 if it exists or add a new declaration (.d.ts) file containing declare module 'mongoose-aggregate-paginate-v2';" Package installation goes fine but when I import package to my project file this error appears.

When trying npm install @types/mongoose-aggregate-paginate-v2, it throws another error: "'@types/mongoose-aggregate-paginate-v2@latest' is not in the npm registry.".

How could I fix this in my project? Installed node version is the latest LTS version if it matters.

jessewilliams1 commented 4 years ago

++1 on this. Everything else in my app is modern except this

aravindnc commented 4 years ago

Sorry I'm not managing the TS version.

aravindnc commented 4 years ago

15

aravindnc commented 2 months ago

Added TS defs.