Skip to content

vp migrate should auto remove esModuleInterop: false from tsconfig.json #1145

Closed

Description

@fengmk2

Avoid vp lint --type-aware error.

vp lint
VITE+ - The Unified Toolchain for the Web

The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.

  × typescript(tsconfig-error): Invalid tsconfig
    ╭─[tsconfig.json:9:24]
  8 │     "skipLibCheck": true,
  9 │     "esModuleInterop": false,
    ·                        ─────
 10 │     "allowSyntheticDefaultImports": true,
    ╰────
  help: Option 'esModuleInterop=false' has been removed. Please remove it from your configuration.
        See https://github.com/oxc-project/tsgolint/issues/351 for more information.

Found 0 warnings and 1 error.
Finished in 233ms on 13 files with 213 rules using 16 threads.

reproduce repo: https://github.com/fengmk2/bun-vite-template/tree/esModuleInterop-false

Activity

  1. added theissue type on Mar 25, 2026
  2. self-assigned this
    on Mar 26, 2026
  3. added 4 commits that reference this issue on Mar 26, 2026
    3c75c72
    2630654
    64c3b45
    a313322
  4. camc314 commented on Mar 26, 2026

    @camc314
    Contributor

    @fengmk2 shall we do the same for allowSyntheticDefaultImports microsoft/TypeScript#62567 ?

  5. fengmk2 commented on Mar 26, 2026

    @fengmk2
    MemberAuthor

    @camc314 No problem, I'll remove the allowSyntheticDefaultImports: false in my next PR.

  6. added 4 commits that reference this issue on Mar 27, 2026
    3fd5160
    4547752
    9965461
    710de88
  7. added a commit that references this issue on Mar 27, 2026
    749ef1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions