R
Railway•2y ago
Elena-el

Unable to deploy React app (on TypeScript).

Hello, I try to deploy my React app that starts and builds successfully locally, but I can not deploy it. I have tried already a million deployments with all kinds of configuration at my package.json and at Railway project settings, via GitHub repo as well as via CLI, but it falls on the same build issue: "ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1 Error: Docker build failed" The screenshot of the logs added. Project IDs are: Via CLI: 36b58df8-d3ee-4e80-bd73-4431ac76c6da GitHub: 14b5b199-d132-43a7-ad5d-c56d4e6dff03 GitHub: 8f84abf9-0f9e-4e33-b6ce-d5daab77349e and there are a lot of others in my account.. GitHub repo: https://github.com/ElenaOhana/lets_coupon_it.git
GitHub
GitHub - ElenaOhana/lets_coupon_it: The new
The new. Contribute to ElenaOhana/lets_coupon_it development by creating an account on GitHub.
9 Replies
Percy
Percy•2y ago
Project ID: 36b58df8-d3ee-4e80-bd73-4431ac76c6da,14b5b199-d132-43a7-ad5d-c56d4e6dff03,8f84abf9-0f9e-4e33-b6ce-d5daab77349e
luna
luna•2y ago
that looks like it's erroring 'cause of build/lint errors. 🤔
Brody
Brody•2y ago
yep but theres a bigger issue too please complete the section from this guide marked "the most common issue" https://help.railway.app/project-help/f9v3gkPQRy4UShk5SnoPDH/getting-your-create-react-app-running-on-railway/qHRsgxa5n57xLp1yVgk9fP
Elena-el
Elena-elOP•2y ago
I have tried but it did not help
Brody
Brody•2y ago
it wasn't meant to fix the issue you are seeing, but it did need to be done anyway 🙂 now you can reference the last section of that guide for the build issue
Elena-el
Elena-elOP•2y ago
I finished the guide but without success😩
Brody
Brody•2y ago
i just deployed your app myself, and have confirmed that the last issue in that guide is the issue you are facing
Elena-el
Elena-elOP•2y ago
Good afternoon. Tell me please what issue exactly did you find, because my deployment trying continues to fall.
Brody
Brody•2y ago
your issue is covered in the Failed to compile section of that guide here is a draft of the guide that uses more straightforward language https://www.notion.so/railwayapp/Getting-Your-Create-React-App-Running-on-Railway-c8334c80b3a24ca48e4bc34ccf161e83
Want results from more Discord servers?
Add your server