vp create react-router aborts Vite+ integration when create-react-router Git commit fails
維護者通常 1 天內回覆
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- react, vite
- 領域
- cli
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Rust
- 星號
- 6.5k
- 分支
- 297
- 平均合併
- 1 天 3 小時
- 30 天內合併 PR
- 245
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
voidzero-dev/vite-plus 的其他 Issue
-
triage: failed
難度 2/5 1-3 小時 新手友好度 71/100
voidzero-dev/vite-plus#3360 · 2 則留言 ·
維護者通常 1 天內回覆
-
triage: not actionable
難度 2/5 1-3 小時 新手友好度 85/100
voidzero-dev/vite-plus#3296 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
pending triage
難度 2/5 1-3 小時 新手友好度 63/100
voidzero-dev/vite-plus#3235 ·
維護者通常 1 天內回覆
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and later可能已有人在做 @kshanxs 於 12 天前認領。 未關閉documentation
難度 2/5 1-3 小時 新手友好度 84/100
voidzero-dev/vite-plus#3219 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
pending triage
難度 2/5 1-3 小時 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 則留言 ·
維護者通常 1 天內回覆
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
higress-group/HiRoute#405 ·
維護者通常 1 天內回覆
-
rust_analyzer flycheck: no CLI way to enable clippy from `check.overrideCommand`可能已有人在做 @TrapsterDK 今天認領。 未關閉needs-triage
難度 2/5 1-3 小時 新手友好度 77/100
bazelbuild/rules_rust#4392 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
🐞 bug 🧩 bevy_gantz_egui
難度 2/5 1-3 小時 新手友好度 82/100
nannou-org/gantz#500 ·
維護者通常 1 天內回覆