Answers for "Accessors are only available when targeting ECMAScript 5 and higher."

0

Accessors are only available when targeting ECMAScript 5 and higher.

# If you're getting the 
	"script.ts:9:8 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher."
# in typescript compliation you need to change your target for compiling in cmd
# like:
tsc -t es5 script.ts
# or
tsc -target es6 script.ts
Posted by: Guest on January-24-2021

Code answers related to "Accessors are only available when targeting ECMAScript 5 and higher."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language