Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

LSP loads vite.config.ts with the server's cwd as root

Đang mở
#3,217 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@leaysgur đang làm issue này rồi.

Từ ngày 23/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

pending triage
Describe the bug

oxlint/oxfmt load vite.config.ts without a root (apps/shared/src-js/vite_plus_config.ts):

resolveConfig({ configFile: path }, "build")

Vite falls back to process.cwd(). In a multi-root workspace (oxc-project/oxc-vscode#418) that's another repo, so plugins resolve against it. TanStack Start fails:

Could not resolve entry for router entry: router in app-a/src

The failing project is plain Vite (no vite-plus), so lazyPlugins() from #1756 isn't available.

Fix: resolveConfig({ root: dirname(path), configFile: path }, "build").

Reproduction

No repo. Steps below.

Steps to reproduce
  1. Workspace with a Vite+ repo first, then a Vite + TanStack Start repo.
  2. Open in VS Code with the Oxc extension.
  3. Loading the second repo's config fails.
System Info
vp v1.3.0 (vite 8.3.4, oxlint 1.88.0, oxfmt 0.73.0)
Node 24.22.1, bun 1.4.4, macOS 27.0.1
Oxc VS Code 1.64.1
Used Package Manager

bun

Logs
Failed to load config: app-c/vite.config.ts
Error: Could not resolve entry for router entry: router in app-a/src
    at resolveEntry (@tanstack/start-plugin-core/dist/esm/resolve-entries.js:30:45)
    at BasicMinimalPluginContext.config (@tanstack/start-plugin-core/dist/esm/vite/plugin.js:55:29)
    at runConfigHook (app-a/.../@voidzero-dev/vite-plus-core/dist/vite/node/chunks/...)
Validations
Ngôn ngữ chính
Rust
Star
6.5k
Fork
296
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
229

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/vite-plus

Tất cả issue của voidzero-dev/vite-plus

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.