Open fullstackfool opened 6 years ago
What happens if you log out moment(start)
, are you getting a valid moment obj?
Invalid object.
Tracked the issue to when vue-full-calendar is using fullcalendar: 4.0.0-alpha.2
. Forcing it to use 4.0.0-alpha
fixes the issue.
+1 Subscribing. Having the same issue with the new alpha.
I am guessing then this is probably an error with fullcalendar: 4.0.0-alpha.2
rather than this repo. Is it worth opening an issue on their repo?
I am happy to fix the version of fullcalendar though to the more stable version if this is a blocker?
I am reading their release notes for v4, it looks like there is a section outlining some changes in 'Event Source Function'
Have you read the docs?
Seems like the fetchInfo
obj has some additional fields for startStr
and endStr
. Are they worth trying?
It seems the first argument is this fetchInfo object that has both the start and the end date time stamps. The start and end are no longer passed separately? And the other arguments seem to return promises, not sure what they do.
Quite possibly - looking into it now.
The fixed version would be a good temporary fix, thanks!
Edit: Also, if the package is going to use the alpha version of fullcalendar, shouldn't the local v4.0.0-1
release also be marked as Pre-release
?
Yeah, so the events have been combined, which you can then use to instantiate a moment object.
Then we get a new error: TypeError: context.cmdFormatter is not a function
Now going to try using an event url, instead of the function
// titleFormat: 'MMMM'
error in title format
This bug still exists in the final release of fullcal, and is in the base library itself outwith of the vue integrations it seems (I can reproduce it on the base library, exact same issues as @fullstackfool reports above)
We've been using eventSources like:
Recently receiving errors of
start.format is not a function
.Logging
start
shows it to be an object:end
:If i fix the format issue by updating to:
Then we get a new error:
TypeError: context.cmdFormatter is not a function
Versions: vue-full-calendar:
4.0.0-1
fullcalendar:4.0.0-alpha.2
moment:2.22.2
moment-timezone:0.5.21
I suspect we've changed another dependacy, which in turn has effected fullcalendar, but i can't figure out what. Does this error look familiar to anyone?