We have a code base that is built every night. Last night, it failed to build (without me making changes that were related to NPM libraries).
I got the following error:
ERROR TS2688: Cannot find type definition file for 'keyv'.
The file is in the program because: Entry point for implicit type library 'keyv'.
I found that the keyv library is not in my packages json, but some other packages that are listed in package.json are using it. In the package-lock.json I found @types/keyv is used in several places.
Searching for the types library and looking at the change in the package-lock.json lead to this line, and this is its link:
https://www.npmjs.com/package/@types/keyv "This is a stub types definition. keyv provides its own type definitions, so you do not need this installed."
The packages using 'keyv' tried to use the @types/keyv which is deprecated.