原文:typescript / webpack报错“can only be default-imported using the 'esModuleInterop' flag

原因:This module is declared with using export , and can only be used with a default import when using the esModuleInterop flag. 解决: 后来在webpack时报错很多modules里文件的这个错: 解决: 在tsconfig.json里添加 ...

2020-07-13 18:04 0 3265 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM