Closed GaurabendwithB closed 4 years ago
Hi, its answered here. I'm closing this issue.
What would be the next troubleshooting step when encountering this error if date-fns
is already installed?
It would appear that var _enUS = _interopRequireDefault(require("date-fns/locale/en-US"));
is not valid, as the ~current~ form of date-fns (edit: perhaps out of date on my project) only has /locale/en
, not /locale/en-US
.
Its time to update date-fns
Date range is throughing error because of date-fns Can't resolve 'date-fns/locale/en-US' in '\node_modules\react-date-range\dist\components\Calendar'