R

Railway

βœ‹ο½œhelp

Join Server

Deploy react front end failed

TLThiago Lordello5/10/2023
Hy guys. I have a problem with my deploy frontend react. In the moment i make a update in npm version, but is not work my deploy. Can I help me ? I send my logs in this post.
TLThiago Lordello5/10/2023
My service id is a297026f-2372-413d-8aa5-0af4cc4fe8bb my project name is todolist-frontend
Bbrody5/10/2023
I'm seeing hash errors, this usually means your react-scripts is wildly out of date, please update your project to use the latest version.

you are also using the default start command still, you should be using serve, please reference this template
https://github.com/brody192/create-react-app-starter
you will want to use the start command from that template along with running npm i serve in your project
TLThiago Lordello5/10/2023
Than you Brody. I will try to fix observing your link. Have a good day. By
Bbrody5/10/2023
no worries, if you need any more assistance with it or have any further questions, I'll be here
TLThiago Lordello5/10/2023
Okay man thanks.
TLThiago Lordello5/11/2023
Hello Brody. I change my version of node and actualize all my dependencies. Then I delete my folder Node Modules e my file packagelock.json. Make npm install and send my commit and push. My aplication is not work. Is a version of node ? Can you help me ?
Bbrody5/11/2023
can you share your repo with me? its the fastest way I can understand what's going on
TLThiago Lordello5/11/2023
Of course
TLThiago Lordello5/11/2023
one moment
TLThiago Lordello5/11/2023
Now my project is public 599235a8-2284-42d0-856e-35f4629d7c05
Bbrody5/11/2023
repo please
TLThiago Lordello5/11/2023
Sorry! Repo of git hub ?
TLThiago Lordello5/11/2023
sure
TLThiago Lordello5/11/2023
Bbrody5/11/2023
you are using the default start command still, you should be using serve, please reference this template
https://github.com/brody192/create-react-app-starter
you will want to use the start command from that template along with running npm i serve in your project
TLThiago Lordello5/11/2023
Refered you command in my app or in configs in my project in web page of railway ?
Bbrody5/11/2023
run the command locally in your project
TLThiago Lordello5/11/2023
Okay
TLThiago Lordello5/11/2023
for fix my problem i change npm i for npm i serve ? But In which file of my project do I change this command?
Bbrody5/11/2023
no, just simply run that command
TLThiago Lordello5/11/2023
okay
TLThiago Lordello5/11/2023
in my machine i play this command and commit ?
TLThiago Lordello5/11/2023
Sory for my bad english. Im brazilian
Bbrody5/11/2023
run the command in your project folder
Bbrody5/11/2023
have you done the other stuff I have told you to?
TLThiago Lordello5/11/2023
Of course
TLThiago Lordello5/11/2023
in folder src ou / of my project
TLThiago Lordello5/11/2023
?
Bbrody5/11/2023
in the root of your project
TLThiago Lordello5/11/2023
okay
TLThiago Lordello5/11/2023
im executing
Bbrody5/11/2023
let me know when I can see the changes in the repo
TLThiago Lordello5/11/2023
Okay
TLThiago Lordello5/11/2023
Is necessary delete folder node modulles and packagelock.json and then reinstall ?
Bbrody5/11/2023
no
TLThiago Lordello5/11/2023
Done
TLThiago Lordello5/11/2023
i commit
TLThiago Lordello5/11/2023
changes
TLThiago Lordello5/11/2023
I try rebuild
Bbrody5/11/2023
you have not done the other things i have asked you to
Bbrody5/11/2023
once again, you are using the default start command still, you should be using serve, please reference this template
https://github.com/brody192/create-react-app-starter
Bbrody5/11/2023
use that templates start command in your project
TLThiago Lordello5/11/2023
Okay. I observe your template. For change my project. Thak you guy.
Bbrody5/11/2023
let me know when i can see the changes in your repo
TLThiago Lordello5/11/2023
Sure
TLThiago Lordello5/11/2023
I send message
TLThiago Lordello5/11/2023
for you
Bbrody5/11/2023
in the mean time, do you have a PORT variable set in your service variables? (if you do, remove it)
do you have any build or start commands defined in the service settings? (if you do, remove them)
Bbrody5/11/2023
what
TLThiago Lordello5/11/2023
Yes i have
TLThiago Lordello5/11/2023
I will remove this variables
TLThiago Lordello5/11/2023
When i complete this steps , i comit and send message for
Bbrody5/11/2023
ah okay okay
Bbrody5/11/2023
what is the [stage-0 file
TLThiago Lordello5/11/2023
I dont know [stage-0 file
TLThiago Lordello5/11/2023
i see in my folder but i dont know this file
Bbrody5/11/2023
lol just remove it
TLThiago Lordello5/11/2023
okay
TLThiago Lordello5/11/2023
my computer is linux
TLThiago Lordello5/11/2023
but i remove
TLThiago Lordello5/11/2023
thanks
Bbrody5/11/2023
i dont quite see the relevance
Bbrody5/11/2023
are you having trouble copying over the start command?
TLThiago Lordello5/11/2023
I'm not exactly sure where I change it. I understood that I should change the packge.json but I don't know how to do it.
TLThiago Lordello5/11/2023
This is my pakage.json
TLThiago Lordello5/11/2023
Bbrody5/11/2023
use the start command from my package.json as the start command in your package.json
Bbrody5/11/2023
start script = start command
start command = start script
the two terms are interchangeable
TLThiago Lordello5/11/2023
yes i will change
TLThiago Lordello5/11/2023
Now is my scripts of my packege.json
TLThiago Lordello5/11/2023
Is correct ?
Bbrody5/11/2023
yes it looks good to me
TLThiago Lordello5/11/2023
sure
TLThiago Lordello5/11/2023
and now
TLThiago Lordello5/11/2023
i commit ?
Bbrody5/11/2023
yes
TLThiago Lordello5/11/2023
the two variables i remove
Bbrody5/11/2023
what two variables
TLThiago Lordello5/11/2023
REACT_APP_API_HOST and REACT_APP_API_PROTOCOL
TLThiago Lordello5/11/2023
It wasn't to delete ?
Bbrody5/11/2023
I don't know what those are for
TLThiago Lordello5/11/2023
Oh sheet. Failed again
Bbrody5/11/2023
build logs please
TLThiago Lordello5/11/2023
One moment
TLThiago Lordello5/11/2023
TLThiago Lordello5/11/2023
There is a problems of lint in my but i dont say if this caused crash in build
Bbrody5/11/2023
why do the logs include a bunch of duplicate text
Bbrody5/11/2023
those are build logs right
TLThiago Lordello5/11/2023
Yes
TLThiago Lordello5/11/2023
i copy part with problems
TLThiago Lordello5/11/2023
Bbrody5/11/2023
set CI = false in the service variables
TLThiago Lordello5/11/2023
which variables ? VAriables of the prblems the eslint ?
Bbrody5/11/2023
service variables in railway
Bbrody5/11/2023
set a service variable CI = false
TLThiago Lordello5/11/2023
okay
Bbrody5/11/2023
thats just a temp fix tho, you really should fix those warnings
TLThiago Lordello5/11/2023
Like this