[GH-ISSUE #6732] [Issue]: The client build fails when the checkout path contains "react" #3773

Closed
opened 2026-10-21 06:07:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6732

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The client build fails when the checkout path contains the letters "react" anywhere, for example a folder named me-bestiary-reactions or a user named reactor. Every dependency is put into the vendor-react chunk, which then breaks the 500 kB chunk budget.

Expected behavior

Where the repository sits on disk does not change how the client bundle is split, and pnpm build passes.

Actual behavior

manualChunks in packages/client/vite.config.ts tests the whole absolute module id:

if (!id.includes("node_modules")) return undefined;
...
if (id.includes("react") || id.includes("scheduler")) return "vendor-react";

With a checkout at /home/kolache/Documents/GitHub/me-bestiary-reactions, every id under node_modules contains "react", so the other vendor rules below that line never run. The build then stops with:

[bundle-budget] Chunk size warning budget exceeded: assets/vendor-react-DtGnA2ye.js (701.34 kB)

The same commit in a folder without "react" in its path builds with vendor-react at 346.52 kB.

Steps to reproduce

  1. Check out staging (4629eb913) into a folder whose path contains "react", for example git worktree add ../reaction-test origin/staging.
  2. Run pnpm install --frozen-lockfile and then pnpm check (or pnpm build).
  3. The client build fails on the chunk budget.

Environment

  • Marinara Engine version: staging at 4629eb913
  • Install type: source
  • OS + version: Fedora 44
  • Browser or app shell: not browser-specific (build step)

Logs, screenshots, or video

See the build error above.

Additional context

Reading only the part of the id after the last node_modules/ before the vendor tests would make the split independent of the install location. Anything that builds the client from such a folder fails the same way.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6732 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The client build fails when the checkout path contains the letters "react" anywhere, for example a folder named `me-bestiary-reactions` or a user named `reactor`. Every dependency is put into the `vendor-react` chunk, which then breaks the 500 kB chunk budget. ## Expected behavior Where the repository sits on disk does not change how the client bundle is split, and `pnpm build` passes. ## Actual behavior `manualChunks` in `packages/client/vite.config.ts` tests the whole absolute module id: ```ts if (!id.includes("node_modules")) return undefined; ... if (id.includes("react") || id.includes("scheduler")) return "vendor-react"; ``` With a checkout at `/home/kolache/Documents/GitHub/me-bestiary-reactions`, every id under `node_modules` contains "react", so the other vendor rules below that line never run. The build then stops with: ``` [bundle-budget] Chunk size warning budget exceeded: assets/vendor-react-DtGnA2ye.js (701.34 kB) ``` The same commit in a folder without "react" in its path builds with `vendor-react` at 346.52 kB. ## Steps to reproduce 1. Check out `staging` (4629eb913) into a folder whose path contains "react", for example `git worktree add ../reaction-test origin/staging`. 2. Run `pnpm install --frozen-lockfile` and then `pnpm check` (or `pnpm build`). 3. The client build fails on the chunk budget. ## Environment - Marinara Engine version: `staging` at 4629eb913 - Install type: source - OS + version: Fedora 44 - Browser or app shell: not browser-specific (build step) ## Logs, screenshots, or video See the build error above. ## Additional context Reading only the part of the id after the last `node_modules/` before the vendor tests would make the split independent of the install location. Anything that builds the client from such a folder fails the same way. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:03 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 27, 2026):

Taking ownership as @SpicyMarinara in codex/sept27-assigned-sweep. This is included in the maintainer's assigned-issue sweep against staging. I am tracing the existing implementation and will keep the fix focused, with the relevant validation recorded on the linked PR.

<!-- gh-comment-id:5855477366 --> @SpicyMarinara commented on GitHub (Sep 27, 2026): Taking ownership as @SpicyMarinara in `codex/sept27-assigned-sweep`. This is included in the maintainer's assigned-issue sweep against `staging`. I am tracing the existing implementation and will keep the fix focused, with the relevant validation recorded on the linked PR.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3773
No description provided.