React application unable to serve remotely

My React app was working quite fine until I unknowingly included a commit that modified package.json.lock. Serving the application then threw up this error on the Cloud Run instance: Error image

I’ve tried various was to unblock this problem all to no avail. I’ve even reverted to the commit that worked before this error and it still doesn’t serve properly.
What makes it even more surprising is that it works locally.
I’ll appreciate some help. Thanks.