deploy react app

Hi guys can someone help me to deploy my react app Or have some resource to help Thanks
46 Replies
Percy
Percy2y ago
Project ID: N/A
ZETREY
ZETREYOP2y ago
N/À
Brody
Brody2y ago
what errors are you getting?
ZETREY
ZETREYOP2y ago
Brody
Brody2y ago
full screenshot please
ZETREY
ZETREYOP2y ago
Brody
Brody2y ago
it seems you have some issues with your code
ZETREY
ZETREYOP2y ago
ok let me check in local and try again
Brody
Brody2y ago
might even be worth settings NIXPACKS_NODE_VERSION to 18
ZETREY
ZETREYOP2y ago
I must configure it to nixpacks file?
Brody
Brody2y ago
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?
ZETREY
ZETREYOP2y ago
yes
ZETREY
ZETREYOP2y ago
i try to deploy again but i get this error
Ray
Ray2y ago
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...
ZETREY
ZETREYOP2y ago
GitHub
GitHub - ZHKING13/beniService
Contribute to ZHKING13/beniService development by creating an account on GitHub.
ZETREY
ZETREYOP2y ago
i'm using node v16.18.1
Brody
Brody2y ago
try using node 18
ZETREY
ZETREYOP2y ago
in local ?
Brody
Brody2y ago
what node version are you currently using locally?
ZETREY
ZETREYOP2y ago
v16.18.1
Brody
Brody2y ago
okay I'll look into this later, I have no power so I can't do anything on the computer
ZETREY
ZETREYOP2y ago
okay sir thanks
Brody
Brody2y ago
@ZHKING youre code is broken, even on local, if it doesn't work on local its not gonna work on railway
ZETREY
ZETREYOP2y ago
It work on local
Brody
Brody2y ago
it doesnt work on my local
ZETREY
ZETREYOP2y ago
Do you get any error on your console ?
Brody
Brody2y ago
I did, but I don't have your project on my computer anymore, sorry
ZETREY
ZETREYOP2y ago
I fixe my code but get the same error 😢
Brody
Brody2y ago
okay I'll have another look at it later @ZHKING in the mean time, show me a screenshot of your services variables
ZETREY
ZETREYOP2y ago
I don’t have service variable
Brody
Brody2y ago
okay that's as I was expecting, haven't got around to look at your project yet though
ZETREY
ZETREYOP2y ago
GitHub
GitHub - ZHKING13/beniService
Contribute to ZHKING13/beniService development by creating an account on GitHub.
Brody
Brody2y ago
React App
Web site created using create-react-app
ZETREY
ZETREYOP2y ago
How do you fixed ? I get same error
ZETREY
ZETREYOP2y ago
I don’t know why install commande is npm ci
Brody
Brody2y ago
npm ci is correct
Brody
Brody2y ago
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 domain
ZETREY
ZETREYOP2y ago
thanks sir all work fine
Brody
Brody2y ago
awsome
ZETREY
ZETREYOP2y ago
so i must use this config for all my react project
Brody
Brody2y ago
basically yeah
ZETREY
ZETREYOP2y ago
ok thanks
Brody
Brody2y ago
no problem!
ZETREY
ZETREYOP2y ago
i try it in another project i get this log
Brody
Brody2y ago
because it needs serve npm i serve it was in the package.json file I gave you, please be more observant in the future
Want results from more Discord servers?
Add your server