Accessors are only available when targeting ECMAscript 5 and higher.

 

解决办法:

 

File Watchers 在tsc.cmd命令上加参数--target ES5

Webstorm编译TypeScript报错

 

如果代码里报错 可以在这里设置ES5规则

Webstorm编译TypeScript报错

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-06-30
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-07-20
  • 2021-12-03
相关资源
相似解决方案