Build works locally but deploy fails when pushed to github

You’ve got conflicting peer dependencies, see this related answer: