Webpack has an opinion to not resolve mjs from non mjs packages.
reactjs/react-transition-group#77 (comment)
However you enforced it via module field and webpack becomes crazy about it.
We got this issue mui/material-ui-pickers#894
I propose to get rid from mjs in favour of just stable module field which can be safely resolved by webpack.
Webpack has an opinion to not resolve mjs from non mjs packages.
reactjs/react-transition-group#77 (comment)
However you enforced it via
modulefield and webpack becomes crazy about it.We got this issue mui/material-ui-pickers#894
I propose to get rid from mjs in favour of just stable module field which can be safely resolved by webpack.