npm run buildworks manually but fails in Railway
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
[36mvite v6.0.6 [32mbuilding for production...[36m[39m transforming... [32m✓[39m 70 modules transformed. [31mx[39m Build failed in 2.35s [31merror during build:
[31mCould not resolve "../../lib/utils" from "src/components/ui/toast.tsx"[31m file: [36m/app/src/components/ui/toast.tsx[31m 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[39m
1 Replies
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