Skip to content

fix(create): skip react router git initialization - #3363

Merged
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
chbaefront:3362
Nov 6, 2026
Merged

fengmk2 merged 3 commits into
voidzero-dev:mainfrom
chbaefront:3362

Conversation

@chbaefront

@chbaefront chbaefront commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

#3362

Pass --no-git-init to create-react-router so its initial commit cannot abort Vite+ project integration when Git identity is not configured.

image

Closes #3362

Pass --no-git-init to create-react-router so its initial commit cannot
abort Vite+ project integration when Git identity is not configured.
@fengmk2

fengmk2 commented Nov 6, 2026

Copy link
Copy Markdown
Member

@chbaefront Can you add a snapshot test to coverage this bug fix?

@fengmk2 fengmk2 self-assigned this Nov 6, 2026
@chbaefront

Copy link
Copy Markdown
Contributor Author

@fengmk2 Added a CLI snapshot regression test using create-react-router@8.5.1 with a local template and no Git identity configured.

Verified that the test fails with the original Git initialization error when the fix is removed, and passes with --no-git-init, including successful Vite+ integration.

@fengmk2
fengmk2 merged commit bb2d43e into voidzero-dev:main Nov 6, 2026
66 checks passed
@chbaefront chbaefront changed the title fix(create): skip React Router Git initialization fix(create): skip react router git initialization Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants