React App Crash after deployment
avanparvadiya
FREEOP

22 days ago

I deployed one project on system. after successful deployment of project its crashing abnromally.

Here is service details which is affecting it.

https://railway.com/project/797603c2-c657-4969-9cab-bfe81ff27236/service/e614180a-ad0d-487c-a8c1-24db1af34681?environmentId=ef378642-946a-4552-b270-cf6441966ea2&id=6df1b52e-4421-4deb-97df-a017726650cd#deploy

$10 Bounty

15 Replies

Railway
BOT

22 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 22 days ago


Can you provide the error logs?


avanparvadiya
FREEOP

22 days ago

Starting Container

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found

npm warn config production Use --omit=dev instead.

preroute@0.1.0 start

serve -s build -l $PORT

sh: 1: serve: not found


0x5b62656e5d

Can you provide the error logs?

avanparvadiya
FREEOP

22 days ago

shared errors logs


I assume npm i was ran during the build process?


0x5b62656e5d

I assume `npm i` was ran during the build process?

avanparvadiya
FREEOP

22 days ago

npm i for installing packages

npm run build for build

npm run start for start server


When is npm run build ran?


0x5b62656e5d

When is `npm run build` ran?

avanparvadiya
FREEOP

22 days ago

During deplyoment after npm install command completed

have shared deployment logs

Attachments


spidertwin2
PRO

22 days ago

I am having the same problem, my Next.js app is randomly crashing since yesterday! Very strange, has never happened before. Error message -

railway-crash-error.png

Attachments


avanparvadiya
FREEOP

22 days ago

I am usign react + typescript app in deployment


Make sure the serve dependency is listed in your package.json.


spidertwin2

I am having the same problem, my Next.js app is randomly crashing since yesterday! Very strange, has never happened before. Error message - ![railway-crash-error.png](https://station-server.railway.com/attachments/att_01kv4y7z9ce4dvdynjmzr5ef5k)

Please create your own thread.


0x5b62656e5d

Make sure the `serve` dependency is listed in your `package.json`.

avanparvadiya
FREEOP

22 days ago

using to start project

"start": "serve -s build -l $PORT",


Yes, but is the dependency listed in your package.json?


avanparvadiya
FREEOP

22 days ago

its prenent on package.json already but giving errors this is url for it

https://preroute-production.up.railway.app/


Does it work locally? (Make sure you didn't install serve globally)


Welcome!

Sign in to your Railway account to join the conversation.

Loading...