This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.

异常:

 

 本次是加入图表F2出现异常。

解决方法:

在tsconfig.ts中增加配置

"allowSyntheticDefaultImports": true, //允许从没有默认导出的模块引入
 

 

 重启编译器(此处用的vscode)

posted @ 2022-03-28 17:18  流年sugar  阅读(1245)  评论(8)    收藏  举报