-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with date-fns v2.0.x #57
Comments
Ahh, seems like they have changed the names of the imports in date-fns 2.x. I have to think about how to go about this. But I might do a release with breaking changes and update to date-fns 2.0. However, it will not be done before it's released as a stable version (currently only in alpha). My only suggestion for the moment is to use the stable version of date-fns. It's a shame they havn't added some logic to handle backwards compatibility. |
I created an issue: |
Currently still in alpha. I will wait until Beta is released. |
Betas are in :) https://github.com/date-fns/date-fns/releases |
date-fns v2 is out https://github.com/date-fns/date-fns/releases/tag/v2.0.0 |
Has this been handled? I tried to install the date picker and the terminal cries after date-fns. I installed the latest version of date-fns to no avail. |
v2 is official https://github.com/date-fns/date-fns/releases/tag/v2.0.0 |
@MikaelEdebro Any plans to upgrade to V2.0? |
Waiting for V2.0 |
After installing date-fns dependencie it will work |
@o-Chamie-o did you install it in your project package.json or did you try to fix it in the airbnb-style-datepicker? |
In fact I had to force version like this in package.json
|
I think this package can mark as abandonned. :( |
Yeah, it is abandoned. Use https://vcalendar.io it has all the features. |
I'm getting complaints that dependencies are not installed during build:
If I go into
vue-airbnb-style-datepicker.es.js
and changeimport subMonths from 'date-fns/sub_months';
toimport subMonths from 'date-fns';
orimport subMonths from 'date-fns/subMonths';
it will work. Unfortunately, that's not a possibility for deployed environments, using docker, other build tools, etc.
Any ideas on workarounds?
The text was updated successfully, but these errors were encountered: