React-big-calendar: Cannot read property 'formats' of undefined

Created on 25 Oct 2018  路  3Comments  路  Source: jquense/react-big-calendar

Do you want to request a _feature_ or report a _bug_?

Bug.

What's the current behavior?

TypeError: Cannot read property 'formats' of undefined
image

When I delete the bigcalendar class, the problem is solved. lol.
image

What's the expected behavior?

All of copied from your examples. But doesnt works.

Most helpful comment

My problems is solved, i set localizer props to moment.js. image

All 3 comments

My problems is solved, i set localizer props to moment.js. image

I would declare your localizer up out of the render() method personally but if what you have works great 馃憤

What if it does not resolve the issue?

const localizer = BigCalendar.momentLocalizer(moment);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhming0 picture zhming0  路  3Comments

KatiaPosPago picture KatiaPosPago  路  3Comments

gsavvid picture gsavvid  路  3Comments

mathieusanchez picture mathieusanchez  路  4Comments

manutenfruits picture manutenfruits  路  3Comments