Using WebStorm 10.0
I am currently learning Node Js and installing all of the component it need to work . So i chose to used Jest to test my work, i already installed Jest to my frameworks and languages inside the WebStorm but its keeps showing Promise as unresolved type how do i fix it in WebStorm?


Promise type is not a part of Jest module; please try enabling 'ECMAScript 6' library for your project in Settings | Languages & Frameworks | JavaScript | Libraries. If it's not available in your version (it is there since WebStorm 11), try downloading typescript stubs for 'promise' library (promise.d.ts)
Also, check your tsconfig.json. Either add es6 or es2015.promise to your tsconfig.lib[]
{
"compilerOptions": {
...
"lib": [
"es2015.promise"
]
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With