Since there was some history revision, it sounds like a build cache issue. There are a couple of ways to test this with a new deployment.
- Add an Environment Variable called
VERCEL_FORCE_NO_BUILD_CACHEwith a value of1in Project Settings to skip the Build cache - Use the CLI
vercel --forcecommand to start a new deployment without the Build cache
Some additional info is available here: Troubleshooting Build Errors
Please give that a try and let me know how it goes!