Closed Zuckjet closed 3 years ago
Is it reproducible when you use TS 4.3.5 in CLI?
What VS Code version are you using and what TS version is used for this workspace (bottom right corner)? Is it workspace version 4.3.5 or some other built-in?
VS Code might yell on lowercase value es2021
(because apparently validation expects uppercase only) but from CLI it would work as expected and replaceAll
won't trigger an error in editor.
Thanks, I can use uppercase to fix the problem. But I expect it should be case-insensitive. So I have sent a PR for fix this.
That's awesome!
having the same issue still. uppercase does not help. any other thoughts on how to solve this?
Changing tsconfig.json
lib: ["ES2020"]
to lib: ["ES2021"]
did indeed solve it for me.
I got the same, because of the file wasn't in the scope of tsconfig (wasn't imported from any of tsconfig.files) It was really confusing, 'til found out.
Bug Report
🔎 Search Terms
es2021
🕗 Version & Regression Information
typescript version is 4.3.2
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
But
es2021
is not a valid value for lib compiler option in tsconfig.json:🙂 Expected behavior