Skip to content

resolve.tsconfigPaths configuration not working in Vite 8 #22047

Description

@l246804

Describe the bug

  1. 无论是否配置 resolve.tsconfigPaths 构建都正常
  2. 无论是否配置 resolve.tsconfigPaths 启动开发环境都会报错

Reproduction

https://stackblitz.com/edit/vitejs-vite-g6xmvvxk?file=vite.config.ts

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 22.22.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitejs/plugin-vue: ^6.0.5 => 6.0.5 
    vite: ^8.0.3 => 8.0.3

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

p3-minor-bugAn edge case that only affects very specific usage (priority)

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions