Repository navigation
Description
Describe the bug
Vite 8 builtin resolve.tsconfigPaths resolves imports incorrectly when an app tsconfig.json extends a shared tsconfig package through a workspace symlink.
In the repro:
packages/app/tsconfig.jsonextends@repro/tsconfig/base@repro/tsconfigis a workspace package symlinked intonode_modules- the shared base config defines exact
pathsentries for:@repro/shared-ui@repro/shared-ui/components
These imports should resolve to source files via tsconfig paths:
@repro/shared-ui->src/index.ts@repro/shared-ui/components->src/components/index.ts
Instead, with builtin resolve.tsconfigPaths, they resolve to package fallback targets:
@repro/shared-ui->dist/index.js@repro/shared-ui/components->components.json
Using vite-tsconfig-paths@6.1.1 in the same repo resolves both imports to source correctly.
The repro intentionally includes packages/shared-ui/components.json to make the incorrect fallback obvious. Without that file, the same broken resolution path would still not resolve to
source, and would instead fall back to dist/components/index.js.
A useful control case is included in the repro: if packages/app/tsconfig.json is changed to extend ../../tooling/tsconfig/base.json directly instead of @repro/tsconfig/base, builtin
resolve.tsconfigPaths also resolves both imports to source correctly.
So the issue appears to be specifically related to resolving extends through the symlinked tsconfig package path.
Reproduction
https://github.com/luxass/vite-tsconfig-repro
Steps to reproduce
- Run
pnpm install - Run
cd packages/app - Run
pnpm dev:builtin - Observe that the app renders:
{
"expected": {
"sharedUi": "src/index.ts",
"sharedUiComponents": "src/components/index.ts"
},
"actual": {
"sharedUi": "dist/index.js",
"sharedUiComponents": "components.json"
}
}- Run pnpm dev:plugin
- Observe that the app resolves both imports to source correctly
- Optionally, in packages/app/tsconfig.json, comment:
"extends": "@repro/tsconfig/base"
and uncomment:
"extends": "../../tooling/tsconfig/base.json" - Run pnpm dev:builtin again
- Observe that builtin resolve.tsconfigPaths then resolves both imports to source correctly
System Info
System:
OS: macOS 26.3
CPU: (12) arm64 Apple M2 Max
Memory: 225.20 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.18.0 - /Users/[redacted]/.local/state/fnm_multishells/69591_1773470025327/bin/node
npm: 10.9.3 - /Users/[redacted]/.local/state/fnm_multishells/69591_1773470025327/bin/npm
pnpm: 10.32.1 - /Users/[redacted]/.local/state/fnm_multishells/69591_1773470025327/bin/pnpm
bun: 1.3.10 - /opt/homebrew/bin/bun
Deno: 2.7.5 - /opt/homebrew/bin/deno
Browsers:
Chrome: 145.0.7632.160
Firefox: 148.0
Safari: 26.3
npmPackages:
vite: 8.0.0 => 8.0.0Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Activity
khalidsaidi commentedon Mar 18, 2026
sapphi-red commentedon Mar 23, 2026
This will be fixed by oxc-project/oxc-resolver#1080.
fix: restore vite-tsconfig-paths for baseUrl resolution (#11917)