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