Strapi error inside types

Hmm, from my point of view it looks ok, let’s dig deeper into the problem.

What Strapi version do you use? Can you check if on prod and dev you have the same version?
Can you explain how you exactly deploy your app? Do you run yarn install and yarn build --clean on production during deployment?