Closed
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
.