npm run build
works manually but fails in Railway

failfast123TRIAL

2 months ago

"rm -rf /tmp/npm-cache && npm install --no-cache && npm run build" did not complete successfully: exit code: 1 View in context npm warn invalid config cache=false set in command line options

npm warn invalid config Must be valid filesystem path

npm warn config production Use --omit=dev instead.

npm warn EBADENGINE Unsupported engine {

npm warn EBADENGINE package: 'react-router@7.1.1',

npm warn EBADENGINE required: { node: '>=20.0.0' },

npm warn EBADENGINE current: { node: 'v18.20.5', npm: '10.8.2' }

npm warn EBADENGINE }

npm warn EBADENGINE Unsupported engine {

npm warn EBADENGINE package: 'react-router-dom@7.1.1', npm warn EBADENGINE required: { node: '>=20.0.0' },

npm warn EBADENGINE current: { node: 'v18.20.5', npm: '10.8.2' }

npm warn EBADENGINE }

changed 1 package, and audited 680 packages in 2s

192 packages are looking for funding

run npm fund for details 2 moderate severity vulnerabilities

To address all issues, run:

npm audit fix

Run npm audit for details.

npm warn config production Use --omit=dev instead.

> frontend@0.0.0 build

> vite build

vite v6.0.6 building for production... transforming... ✓ 70 modules transformed. x Build failed in 2.35s error during build:
Could not resolve "../../lib/utils" from "src/components/ui/toast.tsx" file: /app/src/components/ui/toast.tsx at getRollupError (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:396:41) at error (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:392:42) at ModuleLoader.handleInvalidResolvedId (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:20150:24) at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:20110:26

Closed

1 Replies

unicodeveloperPRO

2 months ago

It seems this works correctly now.


Status changed to Awaiting User Response railway[bot] 2 months ago


Status changed to Closed unicodeveloper 2 months ago