I'm facing a challenge in my Typescript project where I want to incorporate an npm module that doesn't have typings or tsd files. When I attempt to use import Module from 'module'
, I encounter the error: Cannot find module 'module'.
Is there a solution to this issue?
[EDIT]
Here's a snippet of my tsconfig.json
:
{
"compilerOptions": {
"target": "ES5",
"moduleResolution": "node",
"module": "commonjs",
"noEmitOnError": true,
"noImplicitAny": true,
"experimentalDecorators": true,
"sourceMap": true,
"sourceRoot": "src",
"outDir": "bld"
},
"exclude": [
"bld"
]
}