-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
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:
🕗 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
.
fatcerberus, nhardy, aaronadamsCA and nyngwang
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFix AvailableA PR has been opened for this issueA PR has been opened for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript