问题:
运行tsc classes.ts
时报如下错误:
1 |
error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. |
解决:
1 2 |
// 运行 tsc classes.ts -t es5 |
运行tsc classes.ts
时报如下错误:
1 |
error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. |
1 2 |
// 运行 tsc classes.ts -t es5 |
公众号
头条号