Skip to content

When verbatimModuleSyntax: true, allow an explicit isolatedModules: true #53601

Closed
@MuleaneEve

Description

@MuleaneEve

Bug Report

The new verbatimModuleSyntax implies isolatedModules, which is fine. However, it also prevents us from specifying isolatedModules: true explicitly, which should also be fine.

This is an issue in a Next.js app because its build process will force "isolatedModules: true" to be present. This issue has been reported on their side as well.

So it is currently impossible to upgrade a Next.js app to TypeScript 5.

Existing bug reports

This issue was not taken into consideration:

#53374
#53160

🕗 Version & Regression Information

TypeScript 5.0

🙁 Actual behavior

Type error: Option 'isolatedModules' is redundant and cannot be specified with option 'verbatimModuleSyntax'.

🙂 Expected behavior

verbatimModuleSyntax: true should allow isolatedModules: true.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions