0

I am newbie on React and I am trying to deploy my React Application build using CRA on vercel. Its failing to deploy with error Message "react-scripts build" exited with 127.

I have tried deleting node modules, package.json lock and reinstalling it. Also tried npm install react-scripts. Also tried env variable CI=false in vercel app but nothing is working[Error Log Image[Package.json detailsPackage.json details](https://i.sstatic.net/k5r2y.png)](https://i.sstatic.net/bTByC.png)

1 Answer 1

0

I had a similar issue and what I did to resolve it was specifying the Root directory on Vercel when deploying. Vercel gives you the form to fill out after you click import this contains the following, "Project name", "Framework Preset" which in our case is Create React App and then "Root" which you can edit, make sure you click on the actual react application name and you should be good when you run deploy, also don't forget your environment variables in case you have an API key you are using.

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.