WebStorm:使用 export * from 时未解析的变量

WebStorm: Unresolved variable when using export * from

WebStorm 2017.2.2

当我尝试使用 export * as name from 导出模块时,WebStorm 在将对象导入另一个文件时无法解析对象。

示例:

// file1.js
export const foo = () => {};
export const bar = () => {};

// file2.js
export * as file1 from './file1';


// file3.js
import * as file2 from './file2';

console.log(file2.file1.foo); // Unresolved variable file1

已知问题,请关注WEB-20955更新