R
Railwayβ€’7mo ago
noel

Build failing

Hey gang, can't wrap my head around this one, using vanilla Parcel to build but it's failing:
{
"name": "front",
"version": "1.0.0",
"scripts": {
"start": "parcel src/index.html",
"build": "parcel build src/index.html"
},
"dependencies": {
"axios": "^0.24.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"parcel": "^2.10.3"
},
"browserslist": "> 0.5%, last 2 versions, not dead"
}
{
"name": "front",
"version": "1.0.0",
"scripts": {
"start": "parcel src/index.html",
"build": "parcel build src/index.html"
},
"dependencies": {
"axios": "^0.24.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"parcel": "^2.10.3"
},
"browserslist": "> 0.5%, last 2 versions, not dead"
}
And error... ```` ... #12 0.793 npm WARN config production Use --omit=dev instead. #12 0.861 #12 0.861 > trukraine-front@1.0.0 build #12 0.861 > parcel build src/index.html #12 0.861 #12 1.480 🚨 Build failed. #12 1.482 #12 1.484 unknown: Entry /app/src/index.html does not exist #12 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1 ----- > [stage-0 8/10] RUN --mount=type=cache,id=s/bbb93ea0-42f4-467f-bc20-d35e20d192ff-node_modules/cache,target=/app/node_modules/.cache npm run build: 0.793 npm WARN config production Use --omit=dev` instead. 0.861 0.861 > trukraine-front@1.0.0 build 0.861 > parcel build src/index.html 0.861 1.480 🚨 Build failed. 1.482 1.484 unknown: Entry /app/src/index.html does not exist ----- Dockerfile:24 ------------------- 22 | # build phase 23 | COPY . /app/. 24 | >>> RUN --mount=type=cache,id=s/bbb93ea0-42f4-467f-bc20-d35e20d192ff-node_modules/cache,target=/app/node_modules/.cache npm run build 25 | 26 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1 Error: Docker build failed ```` Thank you πŸ™
2 Replies
Percy
Percyβ€’7mo ago
Project ID: bbb93ea0-42f4-467f-bc20-d35e20d192ff,bbb93ea0-42f4-467f-bc20-d35e20d192ff
Adam
Adamβ€’7mo ago
please share your repo and any Railway settings you have set