@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.node_modules/@types/request-promise/errors.d.ts(1,21): error TS2307: Cannot find module '.'.
import rp = require('.');
~~~~~~~~~~~~~~~~~~~~~^
I am getting this error as well.
A workaround is to edit node_modules/@types/request-promise/errors.d.ts such that import rp = require('.'); becomes import rp = require('request-promise');.
@Jack-Works
in your tsconfig.json file, you have to set the following compiler option:
"compilerOptions": {
"moduleResolution": "node"
}
or run tsc with that flag : tsc --moduleResolution node
Most helpful comment
@Jack-Works
in your
tsconfig.jsonfile, you have to set the following compiler option:or run tsc with that flag :
tsc --moduleResolution node