material-date-range-picker icon indicating copy to clipboard operation
material-date-range-picker copied to clipboard

Attempted import error: 'isWithinRange' is not exported from 'date-fns'.

Open nadimgkmit opened this issue 4 years ago • 2 comments

I have this issue

nadimgkmit avatar May 12 '20 13:05 nadimgkmit

Hey nadimgkmit, can you try the exact version of date-fns specified in the readme? Haven't touched this project in a while and do not know the status of newer date-fns versions.

jonas-app avatar May 13 '20 23:05 jonas-app

I can see that 'isWithinRange' has been renamed to 'isWithinInterval' in the date-fns module to mirror the use of the word "interval" in standard ISO 8601:2004. Ref: https://github.com/date-fns/date-fns/blob/5cb0dde16c47dd72deb779623a71e5b0e771c211/CHANGELOG.md

gaonkar-adi avatar May 29 '20 12:05 gaonkar-adi