-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js v18 & v19 don't support some es2023 features #217
Comments
At this repo no, but those will probably come (or be fixed in) a new TypeScript release I expect |
Filed microsoft/TypeScript#56796. |
Maybe https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#supporting-lib-from-node_modules can work to override |
something-predictable
pushed a commit
to something-predictable/node-env
that referenced
this issue
Apr 20, 2024
as they sadly does not err on the side of caution, cf. tsconfig/bases#217.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ES2023 introduced
toSorted
,toReversed
,toSpliced
,with
, andfindLast
andfindLastIndex
methods on Array.prototype,Node.js 18 and 19 only support findLast and findLastIndex, and don't support toSorted and others
node18 and node19 bases both specify es2023 lib
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node18.json
https://github.com/tsconfig/bases/blob/5ee68ffc8325546335649525a3553067d2d27830/bases/node19.json
I suspect nothing can be really done about this?
The text was updated successfully, but these errors were encountered: