Skip to content

Fix frontend build: pin @vitejs/plugin-react to ^5.2.0 - #40

Merged
eagnespuerto merged 2 commits into
mainfrom
feature/vetstar-pi
Sep 3, 2026
Merged

eagnespuerto merged 2 commits into
mainfrom
feature/vetstar-pi

Conversation

@eagnespuerto

Copy link
Copy Markdown
Owner

Summary

  • PR VetStar Pi port + dependency refresh #39 landed with @vitejs/plugin-react@^6.1.1, which requires vite@^8. vite@8 needs Node 22, but CI is on Node 20 and the package pins vite@^7.3.0 — so npm install failed with ERESOLVE, breaking the Smoke tests build.
  • Downgrades the plugin to ^5.2.0 (supports vite 5/6/7 on Node 20). No other changes.

Test plan

  • cd frontend && npm install && npm run build
  • Smoke tests job goes green

🤖 Generated with Claude Code

eagnespuerto and others added 2 commits September 3, 2026 20:24
plugin-react@6 requires vite@^8, and vite@8 requires Node 22 — the
CI runner is on Node 20. Downgrade to plugin-react@5, which supports
vite@5/6/7 on Node 20.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
React 19's useRef<T | null>(null) returns RefObject<T | null>, not
RefObject<T> — the ResultsPanel/PlotAndControls prop types need to
match. Only the two prop-type annotations changed; the useRef and
consumers are already null-safe.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@eagnespuerto
eagnespuerto merged commit d386a73 into main Sep 3, 2026
3 checks passed
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.

1 participant