1

When I try to deploy a CRA with npm run build everything works fine, but when I head to localhost:5000, I get 404 Requested path could not be found, and in dev. console Failed to load resource: the server responded with a status of 404 (Not Found).

How should I deploy my CRA's? Everything works fine on development build.

3
  • No, it's deployed on localhost:5000 Commented Feb 27, 2020 at 8:24
  • what's CRA? client react application? Commented Feb 27, 2020 at 12:36
  • @OscarRyz It means Create-React-App, and it refers to the command used to create the first packages for React.js apps ;) Commented Feb 27, 2020 at 14:47

1 Answer 1

1

The fact was: The terminal told me to use serve -s build but it failed when was ran from the /build folder. When I run serve -s from inside of the /build folder, everything is working properly!

Cheers!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.