This issue is probably due to the new update in netlify as it is treating warning as errors,causing the build to fail. https://community.netlify.com/t/new-ci-true-build-configuration-treating-warnings-as-errors-because-process-env-ci-true/14434