使用import moment from 'moment'后报错

解决办法:在tsconfig.json中增加配置

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

相关文章:

  • 2021-12-17
  • 2022-01-22
  • 2021-07-25
  • 2021-11-11
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2022-01-16
  • 2021-11-26
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案