mongoose-aggregate-paginate-v2 icon indicating copy to clipboard operation
mongoose-aggregate-paginate-v2 copied to clipboard

Could not find a declaration file for module

Open amapy003xamk opened this issue 4 years ago • 3 comments

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.

amapy003xamk avatar Aug 20 '20 14:08 amapy003xamk

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

jessewilliams1 avatar Sep 01 '20 18:09 jessewilliams1

Sorry I'm not managing the TS version.

aravindnc avatar Sep 03 '20 18:09 aravindnc

#15

aravindnc avatar Sep 03 '20 18:09 aravindnc

Added TS defs.

aravindnc avatar Jun 27 '24 14:06 aravindnc