Blito
Blito
RRailway
Created by Blito on 11/2/2023 in #✋|help
Error: Docker build failed
Hello, I am having problems deploying my react vite frontend on railway, this is the error it generates: ERROR: Could not resolve: Process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1 My packaging.json file is like this: { "name": "front2", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, "dependencies": { "@fortawesome/fontawesome-free": "^6.4.2", "@fortawesome/free-solid-svg-icons": "^6.4.2", "@fortawesome/react-fontawesome": "^0.2.0", "@mui/icons-material": "^5.14.12", "@mui/material": "^5.14.12", "@react-pdf/renderer": "^3.1.13", "@reduxjs/toolkit": "^1.9.5", "axios": "^1.4.0", "bootstrap": "^5.3.1", "file-saver": "^2.0.5", "jsonwebtoken": "^9.0.1", "jspdf": "^2.5.1", "jspdf-autotable": "^3.7.0", "jws": "^4.0.0", "mdb-react-ui-kit": "^6.2.0", "mdb-ui-kit": "^6.4.1", "react": "^18.2.0", "react-datepicker": "^4.21.0", "react-dom": "^18.2.0", "react-icon": "^1.0.0", "react-icons": "^4.11.0", "react-jwt": "^1.2.0", "react-paginate": "^8.2.0", "react-pdf": "^7.5.0", "react-pro-sidebar": "^1.1.0-alpha.1", "react-redux": "^8.1.2", "react-router-dom": "^6.14.2", "react-scripts": "^5.0.1", "reactstrap": "^9.2.0", "safe-buffer": "^5.2.1" }, "devDependencies": { "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", "@vitejs/plugin-react-swc": "^3.3.2", "eslint": "^8.45.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.3", "vite": "^4.4.5" } }
7 replies