Deploy react front end failed

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.
72 Replies
Percy
Percyā€¢2y ago
Project ID: a297026f-2372-413d-8aa5-0af4cc4fe8bb
Thiago Lordello
Thiago LordelloOPā€¢2y ago
My service id is a297026f-2372-413d-8aa5-0af4cc4fe8bb my project name is todolist-frontend
Brody
Brodyā€¢2y ago
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
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Than you Brody. I will try to fix observing your link. Have a good day. By
Brody
Brodyā€¢2y ago
no worries, if you need any more assistance with it or have any further questions, I'll be here
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Okay man thanks. 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 ?
Brody
Brodyā€¢2y ago
can you share your repo with me? its the fastest way I can understand what's going on
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Of course one moment Now my project is public 599235a8-2284-42d0-856e-35f4629d7c05
Brody
Brodyā€¢2y ago
repo please
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Sorry! Repo of git hub ? sure
Thiago Lordello
Thiago LordelloOPā€¢2y ago
GitHub
GitHub - thiagolordello/todolist_frontend
Contribute to thiagolordello/todolist_frontend development by creating an account on GitHub.
Brody
Brodyā€¢2y ago
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
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Refered you command in my app or in configs in my project in web page of railway ?
Brody
Brodyā€¢2y ago
run the command locally in your project
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Okay for fix my problem i change npm i for npm i serve ? But In which file of my project do I change this command?
Brody
Brodyā€¢2y ago
no, just simply run that command
Thiago Lordello
Thiago LordelloOPā€¢2y ago
okay in my machine i play this command and commit ? Sory for my bad english. Im brazilian
Brody
Brodyā€¢2y ago
run the command in your project folder have you done the other stuff I have told you to?
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Of course in folder src ou / of my project ?
Brody
Brodyā€¢2y ago
in the root of your project
Thiago Lordello
Thiago LordelloOPā€¢2y ago
okay im executing
Brody
Brodyā€¢2y ago
let me know when I can see the changes in the repo
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Okay Is necessary delete folder node modulles and packagelock.json and then reinstall ?
Brody
Brodyā€¢2y ago
no
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Done i commit changes I try rebuild
Brody
Brodyā€¢2y ago
you have not done the other things i have asked you to 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 use that templates start command in your project
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Okay. I observe your template. For change my project. Thak you guy.
Brody
Brodyā€¢2y ago
let me know when i can see the changes in your repo
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Sure I send message for you
Brody
Brodyā€¢2y ago
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) what
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Yes i have I will remove this variables When i complete this steps , i comit and send message for
Brody
Brodyā€¢2y ago
ah okay okay what is the [stage-0 file
Thiago Lordello
Thiago LordelloOPā€¢2y ago
I dont know [stage-0 file i see in my folder but i dont know this file
Brody
Brodyā€¢2y ago
lol just remove it
Thiago Lordello
Thiago LordelloOPā€¢2y ago
okay my computer is linux but i remove thanks
Brody
Brodyā€¢2y ago
i dont quite see the relevance are you having trouble copying over the start command?
Thiago Lordello
Thiago LordelloOPā€¢2y ago
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. This is my pakage.json
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Brody
Brodyā€¢2y ago
use the start command from my package.json as the start command in your package.json start script = start command start command = start script the two terms are interchangeable
Thiago Lordello
Thiago LordelloOPā€¢2y ago
yes i will change
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Now is my scripts of my packege.json
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Is correct ?
Brody
Brodyā€¢2y ago
yes it looks good to me
Thiago Lordello
Thiago LordelloOPā€¢2y ago
sure and now i commit ?
Brody
Brodyā€¢2y ago
yes
Thiago Lordello
Thiago LordelloOPā€¢2y ago
the two variables i remove
Brody
Brodyā€¢2y ago
what two variables
Thiago Lordello
Thiago LordelloOPā€¢2y ago
REACT_APP_API_HOST and REACT_APP_API_PROTOCOL It wasn't to delete ?
Brody
Brodyā€¢2y ago
I don't know what those are for
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Oh sheet. Failed again
Brody
Brodyā€¢2y ago
build logs please
Thiago Lordello
Thiago LordelloOPā€¢2y ago
One moment
Thiago Lordello
Thiago LordelloOPā€¢2y ago
There is a problems of lint in my but i dont say if this caused crash in build
Brody
Brodyā€¢2y ago
why do the logs include a bunch of duplicate text those are build logs right
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Yes i copy part with problems
Brody
Brodyā€¢2y ago
set CI = false in the service variables
Thiago Lordello
Thiago LordelloOPā€¢2y ago
which variables ? VAriables of the prblems the eslint ?
Brody
Brodyā€¢2y ago
service variables in railway set a service variable CI = false
Thiago Lordello
Thiago LordelloOPā€¢2y ago
okay
Brody
Brodyā€¢2y ago
thats just a temp fix tho, you really should fix those warnings
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Like this
Brody
Brodyā€¢2y ago
lowercase false, but that may work
Thiago Lordello
Thiago LordelloOPā€¢2y ago
okay Oh my god. Increadible šŸ„³ It work
Brody
Brodyā€¢2y ago
please fix the warnings though it can degrade the performance of the site
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Yes i fix it Very very thankyou
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Brody
Brodyā€¢2y ago
no problem, happy to help
Thiago Lordello
Thiago LordelloOPā€¢2y ago
Im very hapy. Thanks Goog jog and godd evening
Brody
Brodyā€¢2y ago
you as well!
Thiago Lordello
Thiago LordelloOPā€¢2y ago
šŸ˜€
Want results from more Discord servers?
Add your server