Closed Terry-Fedirko closed 2 years ago
In Fiddle JS, I did this but still get a syntax error but it does execute correctly:
But it would be better if I did this instead to remove that error:
Conclusion: I am closing this issue as it can be rewritten other ways instead of '||=' which the gulp-typescript@6.0.0-alpha.1 does not need require any fixing.
Closing this issue.
I have a TypeScript code that contains the following lines:
When I compile this cold using TS_Build task in Visual Studio 2022 Task Runner Explorer, I get the following error message:
The error generated at Line 982 which is
In regular JavaScript, the '||=' this is valid (and I tested to make sure in JS Fiddle) but gulp-typescript@6.0.0-alpha.1 sees it as an error.
I do have a work around for this but it is not a good solution (gulp-typescript@6.0.0-alpha.1 is able to compile this my work around successfully).