Date-FNS module not found

I’m getting this error when trying to build the app in production:

/app/apps/api/node_modules/@strapi/utils/node_modules/date-fns/index.js'. Please verify that the package.json has a valid "main" entry

Anyone know why this might?

This topic has been created from a Discord post (1234698885499326564) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord