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
When I invoke tsc upon my project, I got the following error in node_modules/gstore-node/lib/index, due to lack of nsql-cache module's type definition.
How other people overcome this?
error TS7016: Could not find a declaration file for module 'nsql-cache'. '/path/to/myproj/node_modules/nsql-cache/index.js' implicitly has an 'any' type.
Try `npm install @types/nsql-cache` if it exists or add a new declaration (.d.ts) file containing `declare module 'nsql-cache';`
1 import NsqlCache, { NsqlCacheConfig } from 'nsql-cache';
~~~~~~~~~~~~
Yes, I had tried and then posted this issue, while wondering it was whether the expected solution or just a workaround, or even it was only me who face this kind of type-not-found error.
When I invoke
tsc
upon my project, I got the following error innode_modules/gstore-node/lib/index
, due to lack ofnsql-cache
module's type definition.How other people overcome this?
As workarounds, I could take the ways below, but I feel like none of them are best.
a. turn off
strict
flag intsconfig.json
b. include
sql-cache
's type definition ingstore-node
repository somehowThe text was updated successfully, but these errors were encountered: