R
Railway16mo ago
EmreE

gatsby build error

I am trying to deploy my React app which uses Gatsby and in my package.json "scripts": { "build": "gatsby build", "develop": "gatsby develop", "format": "prettier --write "*/.{js,jsx,ts,tsx,json,md}"", "start": "npm run develop", "serve": "gatsby serve", "clean": "gatsby clean", "test": "echo "Write tests! -> https://gatsby.dev/unit-testing\" && exit 1" }, Yet, having gatsby build raised error and I changed it to "build": "yarn run build", But now the log console always gives the message as #12 17.72 $ yarn run build  #12 18.07 $ yarn run build  #12 18.38 $ yarn run build  #12 18.73 $ yarn run build  #12 19.03 $ yarn run build  #12 19.32 $ yarn run build  #12 19.61 $ yarn run build  #12 19.90 $ yarn run build  #12 20.19 $ yarn run build  #12 20.48 $ yarn run build  #12 20.80 $ yarn run build  #12 21.11 $ yarn run build  #12 21.43 $ yarn run build  #12 21.72 $ yarn run build  #12 22.02 $ yarn run build  #12 22.31 $ yarn run build  #12 22.61 $ yarn run build  #12 22.90 $ yarn run build  #12 23.19 $ yarn run build  #12 23.53 $ yarn run build  #12 23.84 $ yarn run build  #12 24.13 $ yarn run build  #12 24.42 $ yarn run build  #12 24.71 $ yarn run build  #12 25.00 $ yarn run build  #12 25.29 $ yarn run build  #12 25.58 $ yarn run build  #12 25.87 $ yarn run build  #12 26.21 $ yarn run build  #12 26.52 $ yarn run build  #12 26.83 $ yarn run build  #12 27.14 $ yarn run build  #12 27.43 $ yarn run build  #12 27.72 $ yarn run build  #12 28.01 $ yarn run build  #12 28.31 $ yarn run build  #12 28.61 $ yarn run build  #12 28.91 $ yarn run build  #12 29.21 $ yarn run build  #12 29.51 $ yarn run build  #12 29.81 $ yarn run build  #12 30.11 $ yarn run build
3 Replies
Percy
Percy16mo ago
Project ID: N/A
EmreE
EmreE16mo ago
N/A The same error raised with "yarn run build" ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 1  Error: Docker build failed
Brody
Brody16mo ago
you just created an infinite loop change it back to gatsby build and show us the actual error please
Want results from more Discord servers?
Add your server