Deploying new projects started failing on Netlify. Checking the logs I see something that was not in the logs on previous successful deploys:
Treating warnings a
Sometimes even after setting
CI = yarn build or npm build command
the build fails.
In my case, I ran the build command on my local machine and there was an error with an import which was not being displayed in netlify console.
So If the build is failing then run it once on your local machine this will notify of any errors.