reactdatepicker.com shows blank page
Describe the bug The official website is down, it shows a blank page! I've attached a screenshot of the console error
Screenshots
I am experiencing the same thing
I am experiencing the same thing
I am experienceing same
same here
same here
Locally it's working fine, it seems somewhere in the build step things may be going wrong. Is anyone able to look into this?
I just have downloaded the repo to play locally: yarn, yarn build and lastly yarn start. Still not working.
When I run this locally I get the same format error. Looks like for this import:
import { format, longFormatters } from "date-fns/format";
ends up now with format being undefined. Looks like date-fns just got updated so I'm guessing it's from that. Probably some breaking change in 4.0 that isn't handled.
@BruceHubbard Nice find, here's the PR that upgraded date-fns: https://github.com/Hacker0x01/react-datepicker/pull/5102
@BruceHubbard what happens if you change this to import { format, longFormatters } from "date-fns"; Looking at the date-fns readme that's how they do the import.
How come that update got there? If the diff between v7.3 and v7.4 was just a minor of date-fns
The docs site is running from the master version of the Datepicker. So it's slightly ahead of the v7.4 version.
Nice, I just downgrade date-fns from v4 to v3 and everything is working now, so that's the issue.
As @BruceHubbard said it's a good clue. I did try to find every format and replace it with the import suggested but still not working. I'll keep searching
@johannrp27 ok thank you! What I can do:
- revert the upgrade to bring back the site
- once you've found the fix, you can include the upgrade in the PR
Revert is merged, https://reactdatepicker.com is back alive! Now, let's figure out how we can make this upgrade work :)
Thanks Martjin for the quick fix!
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.