You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurs in the TypeScript>Properties section of the tutorial on Udemy; I couldn't reference it because the codes aren't available in this repository. When I enter the tsc properties.ts command on the command line to transpile TypeScript code to JavaScript code, I get the following error:
properties.ts:48:9 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
48 get location()
properties.ts:53:9 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
53 set location(value: Point)
To solve this problem, it was necassary to explicitly specify he target ECMAScript version in the command line call:
Hi @sadikturan,
An error occurs in the TypeScript>Properties section of the tutorial on Udemy; I couldn't reference it because the codes aren't available in this repository. When I enter the
tsc properties.ts
command on the command line to transpile TypeScript code to JavaScript code, I get the following error:To solve this problem, it was necassary to explicitly specify he target ECMAScript version in the command line call:
Have a nice working day.
Resources
The text was updated successfully, but these errors were encountered: