This module is declared with ‘export =‘, and can only be used with a default import when using the ‘
2024-08-16当TypeScript模块使用export=语法时,需在tsconfig.json中设置esModuleInterop为true,以便支持默认导入。这允许模块间的互操作性,尤其在处理CommonJS和ES6模块混合的情况下。
2024-08-16当TypeScript模块使用export=语法时,需在tsconfig.json中设置esModuleInterop为true,以便支持默认导入。这允许模块间的互操作性,尤其在处理CommonJS和ES6模块混合的情况下。