Error: Package path ./format/index.js is not exported from package ...node_modules/date-fns

cant seem to figure out why this is happening. the package is there and it does have exports for format

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

Did you get this error when building a plugin?

nope when running develop

i figured out what the issue is

i have the project in a monorepo

for some reason strapi isnt using the date-fns version it has

but uses one that’s in the root node_modulkes