Skip to content
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

"Cannot read property 'weeks' of undefined" - we're past hardcoded end date #98

Closed
avimar opened this issue Nov 1, 2020 · 2 comments
Closed

Comments

@avimar
Copy link

avimar commented Nov 1, 2020

export let end = new Date(2020, 9, 29);

I just ran into this issue:
Cannot read property 'weeks' of undefined

I was not defining an end time, assuming it was open-ended. It's not, it's hardcoded with a date that we're now past.

I'm now using this hacky bit for a 3 month window:
start={new Date()} end={new Date(new Date().getTime()+1000*60*60*24*90)}

avimar added a commit to avimar/svelte-calendar that referenced this issue Nov 3, 2020
@antony
Copy link
Contributor

antony commented Nov 10, 2020

Just noticed this too.

@6eDesign
Copy link
Owner

Fixed in version 2.0.x - start and end date defaults have been updated to 1 year ago and 1 year in future, respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants