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
Library debug is specified into dependencies, but related @types/debug is missing.
Transpiler produces the following error at build time:
node_modules/ibm-cloud-sdk-core/es/lib/get-new-logger.d.ts:16:26 - error TS7016: Could not find a declaration file for module 'debug'. '/node_modules/debug/src/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/debug` if it exists or add a new declaration (.d.ts) file containing `declare module 'debug';`
16 import { Debugger } from 'debug';
Solution:
Add "@types/debug": "^4.1.12" into devDependencies
@LsKoder what, specifically, were you building when you encountered this error? Just want to make sure I have the complete view of the problem and solution. Thanks!
Edit: also, what version of the node core library are you using?
Error Description:
Library
debug
is specified into dependencies, but related @types/debug is missing.Transpiler produces the following error at build time:
Solution:
Add
"@types/debug": "^4.1.12"
into devDependenciesnode-sdk-core/package.json
Line 79 in f6cc1c5
Workaround (Tested):
Add explicit
"@types/debug": "^4.1.12"
into the main project, in addition to "node-sdk-core".Thanks
The text was updated successfully, but these errors were encountered: