Commit
node | node12 | nodenext
(#…
- Loading branch information
There are no files selected for viewing
5 comments
on commit 4c15f89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@styfle @ijjk it looks like TypeScript 4.7 (which is now RC) have gone with "node16". is NextJS ready for this change? https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-rc/#ecmascript-module-support-in-node-js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not ready. Looks like TS 4.6 doesn't have the ts.ModuleResolutionKind.Node16
exported so we'll have to update to TS 4.7 in order to support it. Would you like to submit a PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reply @styfle if that's the case im happy to wait until TypeScript 4.7 is released as i understand you can't depend on a version which isn't out yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonwilliams Great! Feel free to submit a PR 👍
packages/next/lib/typescript/writeConfigurationDefaults.ts