jkslyby / material-ui-datetime-range-picker

A datetime range picker built off of material-ui
MIT License
18 stars 11 forks source link

Production build breaks on import error for formatMuiErrorMessage #19

Closed danwexler closed 4 years ago

danwexler commented 4 years ago

Debug builds work fine. Production build breaks with:

Creating an optimized production build...
Failed to compile.

./node_modules/materialui-daterange-picker/node_modules/@material-ui/core/esm/styles/colorManipulator.js
Attempted import error: 'formatMuiErrorMessage' is not exported from '@material-ui/utils' (imported as '_formatMuiErrorMessage').

Not sure what's breaking yet, or why I see this but others have not. I've created a fork of the repo to experiment. Any tips appreciated.

formatMuiErrorMessage IS exported from 4.10.2, but is NOT exported from 4.10.1, or earlier, given my spot checks. It is NOT exported from 4.4.3, the version in the master repo.

danwexler commented 4 years ago

Dang. Wrong material ui picker repo. Sorry!