DEV Community

Discussion on: 2 ways to overcome deployment problems with React on Netlify

Collapse
 
nibble profile image
Joseph Mawa

Hi JU!

Thanks for the article. I am sure someone just starting out with netlify will find it useful. I also faced the same problem some time back. Actually the reason is clearly stated in the error message but it just went over my head. It is because netlify treats any warnings emitted by react as errors therefore failing the build process. I remember ignoring the warnings by adding CI='' just before the build command. I am not sure if that is still the recommended way.

CI='' npm run build
Enter fullscreen mode Exit fullscreen mode

I noticed the following typo in the article.

In the last 6 months, I deployed a punch of projects on Netlify, mostly React.

Probably you meant a bunch of projects

And looks like you entered the build command in the base directory field in the screenshot.
screenshot

Collapse
 
yuridevat profile image
Julia 👩🏻‍💻 GDE

Thank you so much for your comment, that helps a lot!