vp create react-router aborts Vite+ integration when create-react-router Git commit fails
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, vite
- Lĩnh vực
- cli
Hướng nghiên cứu
Start from the vp create react-router flow that runs pnpm dlx create-react-router and handles its exit status. Check how scaffold failures are treated when the generated project already exists. Done means a failed Git initialization does not stop Vite+ integration and the generated project receives its Vite+ dependencies and configuration; linked pull request #3363 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When creating a project with vp create react-router, Vite+ runs pnpm dlx create-react-router@latest.
If the user selects Yes when prompted to initialize Git, create-react-router reports:
Oh no! Failed to initialize git.
This stops the Vite+ integration step, so the generated project does not receive the Vite+ dependencies and configuration.
Running vp migrate afterward integrates the project successfully. However, Vite+ should prevent create-react-router’s Git initialization failure from aborting project creation and the subsequent Vite+ integration.
- Run
vp create react-routerin an empty directory. - Select
Yeswhen prompted to initialize a Git repository. - Complete the create-react-router prompts.
Expected:
Vite+ completes its integration after React Router scaffolding.
Actual:
create-react-router prints Oh no! Failed to initialize git.
Vite+ integration stops, and the generated project does not include Vite+ dependencies or configuration.
vp version: Not found
Workaround:
Run vp migrate in the generated project.
Reproduction
No Repository
Steps to reproduce
No response
System Info
`vp env current`
VITE+ - The Unified Toolchain for the Web
Node.js:
Version 26.13.0
Source lts
Bin Path C:\Users\zero86\AppData\Local\vite-plus\data\js_runtime\node\26.13.0\node.exe
Installed true
Mode managed
Package Manager:
Name pnpm
Version 12.6.0
Source packageManager
Bin Paths
pnpm C:\Users\zero86\AppData\Local\vite-plus\data\package_manager\pnpm\12.6.0\pnpm\bin\pnpm.exe
pnpx C:\Users\zero86\AppData\Local\vite-plus\data\package_manager\pnpm\12.6.0\pnpm\bin\pnpx.exe
Installed true
Mode managed
`vp --versoin`
vp v1.5.0
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager pnpm v12.6.0
Node.js v26.13.0
Used Package Manager
pnpm
Logs
PS C:\Users\zero86\WebstormProjects\test> vp create react-router
warn: This project does not use vite-plus. Learn how to migrate: https://viteplus.dev/guide/migrate
VITE+ - The Unified Toolchain for the Web
◇ [email protected] installed
◇ Which coding agent instruction files should Vite+ create?
AGENTS.md
◇ Which editors are you using?
Writes editor config files to enable recommended extensions and Oxlint/Oxfmt integrations.
VSCode
◇ Initialize a git repository?
Yes
◇ Set up pre-commit hooks to run formatting, linting, and type checking with auto-fixes?
Yes
◇ Generating project…
● Running: pnpm dlx create-react-router
create-react-router v8.5.1
dir Where should we create your new project?
./my-react-router
◼ Using default template See https://github.com/remix-run/react-router-templates for more
✔ Template copied
git Initialize a new git repository?
Yes
deps Install dependencies with pnpm?
Yes
skill Include the React Router agent skill?
Yes
◼ Agent skill: Included React Router agent skill
✔ Dependencies installed
▲ Oh no! Failed to initialize git.
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- Ngôn ngữ chính
- Rust
- Star
- 6.5k
- Fork
- 297
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 245
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
triage: failed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
voidzero-dev/vite-plus#3360 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage: not actionable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
voidzero-dev/vite-plus#3296 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
voidzero-dev/vite-plus#3235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterCó thể đã có người làm @kshanxs đã nhận 12 ngày trước. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
voidzero-dev/vite-plus#3219 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NSPG13/agent-bounties#1749 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
kinqsradio/orbyn-engineering#227 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows automation repo-assist
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
shanselman/winget-tui#483 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
lightonai/next-plaid#205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/datafusion-iceberg#100 ·
Maintainer thường phản hồi trong vòng 1 ngày