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