#Deployment has crashed

9 messages · Page 1 of 1 (latest)

wind lake
#

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

[email protected] start
serve build -n -L -p $PORT
sh: 1: serve: not found
this is the error on deploy Logs

errant mountainBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

forest patioBOT
#

Project ID: 82badddc-6675-4787-a3d2-3998f3438f41

wind lake
#

82badddc-6675-4787-a3d2-3998f3438f41

odd gorge
#
  1. if this is a client side rendered app with client side routing, the correct start command would be serve -s -n -L -p $PORT (assuming the final build is in a folder called build)
  2. if this is not a client side rendered app with client side routing, your current start command is good
  3. you need to install serve for that just run npm i serve
wind lake
#

it works, ty , for some reason serve had disappeared from the package.json

odd gorge
#

is this a react scripts app?

wind lake
odd gorge
#

then you do need the -s flag