Not able to build react project
tut-with-us
PROOP

a year ago

I have linked my react repository to a service in railway. It was running fine and I was able to build it properly. However, I realized that a few days ago, the service was failing and was not building properly for some reason. Please note that we haven't changed our codebase lately and we tried to do a couple of changes in order to fix this issue without reaching any result.

Project ID: ab0addc4-4004-48a7-8a41-4c8782d6a346

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

It seems that the usage of other node install tools is throwing off the build:

> 0.424 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

This is for sure going to make sure that you can't build your project on Railway. I would resolve this first.


Status changed to Awaiting User Response Railway over 1 year ago


tut-with-us
PROOP

a year ago

Thank you for your help! After trying to remove the package-lock.json file which did not help, we decided to completely remove yarn and migrate the project to npm.


Status changed to Awaiting Railway Response Railway over 1 year ago


Status changed to Solved itsrems over 1 year ago


Loading...