5.x.x: transpileModule fails with TS5104 error when verbatimModuleSyntax: true #53160
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
transpileModule fails with TS5104 error when verbatimModuleSyntax: true
"TS5104: Option 'isolatedModules' is redundant and cannot be specified with option 'verbatimModuleSyntax'"
Why? According to those comments (and source code)
TypeScript/src/services/transpile.ts
Lines 49 to 55 in 746a6fe
it unconditionally adds 'isolatedModules: true' to compiler options. And fails because verbatimModuleSyntax is not compatible with isolatedModules.
🔎 Search Terms
verbatimModuleSyntax
isolatedModules
transpileModule
🕗 Version & Regression Information
5.0.1-rc
5.1.0-dev.20230307
⏯ Playground Link
N/A
💻 Code
🙁 Actual behavior
TS5104: Option 'isolatedModules' is redundant and cannot be specified with option 'verbatimModuleSyntax'
🙂 Expected behavior
No errors
The text was updated successfully, but these errors were encountered: