unresolved function or method then()

 changing the language level does not work ..this is so annoying to have in an IDE like webstorm..i don't expect to get an answer but makes me not want to use webstorm at all..


 

0
3 comments

In Settings | Languages & Frameworks | JavaScript | Libraries, press Download..., choose isomorphic-fetch from the list:

Since 2017.3, this can be done right in the editor - hit Alt+Enter on import statement, choose to install typescript definitions

0
Avatar
Permanently deleted user

Thanks Elena. I actually ended up running `npm install @type/isomorphic-fetch --save` from the command line, which amounts to the same thing. One question - Alt+Enter combo does not seem to work on MacOS. Is there an equivalent?

0

it's the same on OSX... see what shortcut is assigned to Preferences | Keymap | Other | Show Intention Actions

0

Please sign in to leave a comment.