material-ui-pickers: Current date-fns version (v2.0.0-alpha.8) breaks material-ui-pickers

Environment

Tech Version
material-ui-pickers 1.0.0-rc.9
@material-ui/core 1.0.0-rc.1
date-fns 2.0.0-alpha.8
React 16.3.2
Browser Chrome, Firefox
Platform macOS 10.13.3 (High Sierra)

Steps to reproduce

  1. Use live example

Expected behavior

All works (like a guide https://material-ui-pickers.firebaseapp.com/usage)

Actual behavior

Most of the functionality has stopped working (calendar, weekday, text values, etc.) With date-fns@2.0.0-alpha.7 all works.

Live example

https://codesandbox.io/s/6wx18p6qjz

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

You need to use date fns v16 with date-fns-utils and v7 with date-fns-utils-old

I am experiencing the same issue here. I tried the suggested workaround of using extending of utils and overriding broken formats, but that still did not fix the issue.

Here is the screenshot of the issue I am having: image

I would suggest to skip date-fns@2.0.0-alpha.8, since it temporary disables all locales except en-US, ru and eo - see changelog.

From our side, we can just mention in docs that we only support alpha.7 for now