Skip to content

Railway Deployment #944b64 fix: bump Node.js engine to >=20.19.0#1

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/fix-deploy-944b64
Open

Railway Deployment #944b64 fix: bump Node.js engine to >=20.19.0#1
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/fix-deploy-944b64

Conversation

@railway-app
Copy link
Copy Markdown

@railway-app railway-app Bot commented Mar 21, 2026

Problem

The build fails because Railpack resolved Node.js 18.20.8 based on the "node": ">=18.0.0" engines field in the root package.json. Vite 8 (recently upgraded from v6) requires Node.js 20.19+ and uses APIs like CustomEvent that don't exist in Node 18, causing the build to crash with ReferenceError: CustomEvent is not defined.

Solution

Updated the engines.node field in the root package.json from >=18.0.0 to >=20.19.0. This tells Railpack to resolve Node.js 20.19+ instead of 18.x, satisfying Vite 8's runtime requirements and resolving the build failure.

Changes

  • Modified package.json

Context

  • Deployment: #944b64
  • Failed commit: 1b3e048

Generated by Railway

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.

0 participants