Accessors are only available when targeting ECMAscript 5 and higher.

解决办法:

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

Webstorm编译TypeScript报错-LMLPHP

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

Webstorm编译TypeScript报错-LMLPHP

05-11 13:27