Skip to content

Switch from node12 to node16 to avoid top-level await issues #48646

@DanielRosenwasser

Description

@DanielRosenwasser

Today, --moduleResolution node12 is a pit-of-failure experience because Node.js 12 is already oldish and doesn't support top-level await. This was brought up in #46452 (and in this comment #46452 (comment))

Before TypeScript 4.7 RC, we should remove node12 as an option and provide a node16 option instead.`

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: ES ModulesThe issue relates to import/export style module behaviorFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions