fix(init): detect TanStack Start instead of treating it as a Vite SPA - #828
Open
kushals256 wants to merge 6 commits into
Open
fix(init): detect TanStack Start instead of treating it as a Vite SPA#828kushals256 wants to merge 6 commits into
kushals256 wants to merge 6 commits into
Conversation
Start SSRs its own HTML, so the plugin's connect injection never fires. Classifying it as Vite reported a green install over an app that could never connect. Detect Start before Vite, keep the plugin with inject: false so stamps still land, and print a client-only connect rather than writing a static import that SSRs and 500s. Signed-off-by: Kushal S <skushal.mys@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Kushal S <skushal.mys@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
divshekhar
enabled auto-merge (squash)
September 8, 2026 09:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reticle initclassified@tanstack/react-start/@tanstack/startas Vite, wired the plugin, and reported every step green ("also injects connect()"). Start SSRs<html>from__root.tsxand never sends Vite'sindex.html, so the transform never runs and no session appears.inject: falseso source stamps still land; connect is a printed client-onlyuseEffect(a static import on that module SSRs and 500s). The plan says this path is ungated.tanstack-startrather than collapsing it intoreact/vite.Fixes #773
Test plan
packages/serverunit tests: detect Start vs Query/Router/Next; plan is MANUAL connect +inject: falseplugin write; connect-step title fails init; unverified NOTICEpnpm --filter @reticlehq/server test:unit(6554 passed locally; the two docs-em-dash failures were from this branch and are fixed)reticle init --dry-runon a TanStack Start app should not report Vite / "also injects connect()"