React and Node deploy error
i am getting this error while deploying my react and node app
here is the code repository of my project https://github.com/pratikjpatil/cloud-collaborator.git
#12 0.767 npm WARN config production Use
--omit=dev
instead.
#12 0.783
#12 0.783 > [email protected] build
#12 0.783 > react-scripts build
#12 0.783
#12 2.474 Creating an optimized production build...
#12 2.624 Browserslist: caniuse-lite is outdated. Please run:
#12 2.624 npx browserslist@latest --update-db
#12 2.624 Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
#12 4.966 Failed to compile.
#12 4.966
#12 4.966 Error: error:0308010C:digital envelope routines::unsupported
#12 4.966 at Generator.next (<anonymous>)
#12 4.966 at new Promise (<anonymous>)
#12 4.966
#12 4.966
#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/53022d6e-ca0b-4d51-88a2-e5908dff9ce1-node_modules/cache,target=/app/node_modules/.cache npm run build:#12 2.624 Browserslist: caniuse-lite is outdated. Please run: #12 2.624 npx browserslist@latest --update-db #12 2.624 Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating #12 4.966 Failed to compile. #12 4.966 #12 4.966 Error: error:0308010C:digital envelope routines::unsupported #12 4.966 at Generator.next (<anonymous>) #12 4.966 at new Promise (<anonymous>) #12 4.966 #12 4.966 ----- Dockerfile:24 ------------------- 22 | # build phase 23 | COPY . /app/. 24 | >>> RUN --mount=type=cache,id=s/53022d6e-ca0b-4d51-88a2-e5908dff9ce1-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
GitHub
GitHub - browserslist/browserslist: 🦔 Share target browsers between...
🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env - GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-en...
2 Replies
Project ID:
53022d6e-ca0b-4d51-88a2-e5908dff9ce1,53022d6e-ca0b-4d51-88a2-e5908dff9ce1
1. remove
npm run build &&
from your start script, railway will automatically run the build
script, you are now running it twice and in the wrong place.
2. one of your dependencys is out of data, please update your dependencys