I have been trying to deploy for a long time, but it keeps getting stuck, no matter what. I have been trying to redeploy old commits that I know have been working before, and it still is stuck. I am not sure what to do. I tried to redeploy emptying the cache and nothing.
I solved this issue by updating the dependencies in my package json. If anyone finds him/herself in this situation install npm-check-updated
npm install -g npm-check-updates
Then to update your dependencies, use this command
ncu --upgrade
This solved the issue in my case. I hope this can be helpful to someone.