Search code examples
javascripttypescriptecmascript-6webstorm

WebStorm doesn't find ES6 named TypeScript import


Getting a "Cannot resolve symbol" error when trying to use the named import syntax.

resolve error

The weird thing is that it works just fine with the import * as ... syntax.

import star syntax

I've set ES6 target in tsconfig.json and installed Lodash typings using tsd.


Solution

  • As @anstarovoyt mentioned, it works fine in WS 12 EAP due to the improved Typescript support. Oh, well.