Netlify function throwing package dependency error in production but works good in local via netlify dev

Trying to deploy a Netlify function along with next.js app. netlify dev in local works fine.
Where as at Netlify environment seeing the following error.

Note: dependencies are present at both microfrontend root level and it’s parent level

Can you please help on this error
Note: our repo follows micro-frontend architecture along with turbo.

Looks like this is also being discussed in Slack. We’ll keep you posted there.