Each time I attempt to iterate through a JSON file, I encounter the error message
Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
I have attempted to resolve this issue by following the advice provided in this solution error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher, but when I execute
tsc --target es6 forOf.ts
, I receive the following error: error TS6053: File 'forOf.ts not found. The file is in the program because: Root file specified for compilation
What steps should I take next?