原文: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