vp create react-router aborts Vite+ integration when create-react-router Git commit fails

オープン
#3,362 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@chbaefront がすでに取り組んでいます。

2026年11月5日 から。

  • #3363 @chbaefront による — オープン

評価

難易度
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 の本文から書いたものです。

説明

pending triage triage: failed
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.
Image

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.


  1. Run vp create react-router in an empty directory.
  2. Select Yes when prompted to initialize a Git repository.
  3. 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
主要言語
Rust
スター
6.5k
フォーク
297
平均マージ
1日 3時間
マージ済み PR(30日)
245

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。