deploy react app
Hi guys can someone help me to deploy my react app
Or have some resource to help
Thanks
46 Replies
Project ID:
N/A
N/À
what errors are you getting?
full screenshot please
it seems you have some issues with your code
ok let me check in local and try again
might even be worth settings
NIXPACKS_NODE_VERSION
to 18
I must configure it to nixpacks file?
no, that's a service variable, but it's likely not gonna solve your issue of your code not building
can you build it on local?
yes
i try to deploy again but i get this error
https://stackoverflow.com/q/69692842
seems like a node issue with openssl? I'm curious why this happens though - can you share your code/repo?
Stack Overflow
Error message "error:0308010C:digital envelope routines::unsupported"
I created the default IntelliJ IDEA React project and got this:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHa...
GitHub
GitHub - ZHKING13/beniService
Contribute to ZHKING13/beniService development by creating an account on GitHub.
i'm using node v16.18.1
try using node 18
in local ?
what node version are you currently using locally?
v16.18.1
okay I'll look into this later, I have no power so I can't do anything on the computer
okay sir thanks
@ZHKING
youre code is broken, even on local, if it doesn't work on local its not gonna work on railway
It work on local
it doesnt work on my local
Do you get any error on your console ?
I did, but I don't have your project on my computer anymore, sorry
I fixe my code but get the same error 😢
okay I'll have another look at it later
@ZHKING
in the mean time, show me a screenshot of your services variables
I don’t have service variable
okay that's as I was expecting, haven't got around to look at your project yet though
There is the repository
https://github.com/ZHKING13/beniService
GitHub
GitHub - ZHKING13/beniService
Contribute to ZHKING13/beniService development by creating an account on GitHub.
React App
Web site created using create-react-app
How do you fixed ? I get same error
I don’t know why install commande is npm ci
npm ci is correct
replace your projects
package.json
with that one.
run npm i --package-lock-only
in your project.
add a service variable called CI
with the value false
and cancel the redeploy from the popup
then push to github
do all this properly and your app will work as proven by my testing domainthanks sir all work fine
awsome
so i must use this config for all my react project
basically yeah
ok thanks
no problem!
i try it in another project i get this log
because it needs serve
npm i serve
it was in the package.json file I gave you, please be more observant in the future