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

时间:2017-08-29 07:39:53

标签: webstorm

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

1 个答案:

答案 0 :(得分:1)

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

相关问题