can you verify that it builds locally?
if yes, but fails when you try and deploy on Netlify, this might be the culprit: