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
I daily run Node 16 so it is natural that when creating new projects, one of the first things I do is yarn add --dev @tsconfig/node16.
This does however present an issue; the node16 tsconfig contains es2021 as it's "target" and "lib" which causes TypeScript to scream at me both within my IDE (VS Code) and upon compiling my project.
I assumed I had an old version of typescript installed or similar but upon checking the Official Documentation, I have discovered that es2021 is not actually a valid property.
Should this become ESNext instead until ES2021 is supported?
Also, as a side note, all of the configs currently specify the ECMA version in lowercase (es2020), whilst the documentation uses uppercase (ES2020); these should probably be updated to follow the documentation.
The text was updated successfully, but these errors were encountered:
I daily run Node 16 so it is natural that when creating new projects, one of the first things I do is
yarn add --dev @tsconfig/node16
.This does however present an issue; the node16 tsconfig contains
es2021
as it's"target"
and"lib"
which causes TypeScript to scream at me both within my IDE (VS Code) and upon compiling my project.I assumed I had an old version of
typescript
installed or similar but upon checking the Official Documentation, I have discovered thates2021
is not actually a valid property.Should this become
ESNext
instead untilES2021
is supported?Also, as a side note, all of the configs currently specify the ECMA version in lowercase (
es2020
), whilst the documentation uses uppercase (ES2020
); these should probably be updated to follow the documentation.The text was updated successfully, but these errors were encountered: