'Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically. Failed to compile

I am deploying React App on Netlify and got the above error on Netlify log while deploying.

Then I have added this to package.json file as I was googling the error

"build": "set \"CI=false\" && react-scripts build" but its still the deployment throws the same error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source