question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cant get any display??

See original GitHub issue

I’m attempting to integrate this into my app but I cannot get any visuals and I’m really not sure what I’m doing wrong.

I’m not sure if this is an actual issue with the code or an issue with the documentation (though I strongly suspect the former). I have an array of 170 objects, I specify the startAccessor and endAccessor properties to correspond to the date properties of the objects, and I get nothing.

To clarify, I see the controls for the calendar, I have the css imported, but there is no grid for the month view let alone any actual data displaying. Here is my render code:

<BigCalendar events={this.state.events} endAccessor='time_started' startAccessor='time_ended' />

I have this placed directly beneath my import statement

BigCalendar.setLocalizer( BigCalendar.momentLocalizer(moment) );

When the time_started and time_ended properties are moment objects, I get a console error upon selecting “week” (but not on render):

TypeError: date[("get" + method)] is not a function

When the time_started/time_ended properties are formatted date strings (“YYYY-MM-DDTHH:MM:SS”) I get no errors. Neither of these provide any display. I’m not sure what to do so I’m hoping I can get some direction, even if this technically isn’t an “issue”. Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jquensecommented, Oct 30, 2017

Yes you need to set the height of the calendar explicitly (per the documentation). Unfortunately it can’t be done automatically. In addition your start and end dates need to be Date objects not string. You can preprocess your events array or use a function for start and end accessors to do it on the fly

0reactions
rmilejczcommented, Oct 30, 2017

oooooooooooh okay! thank you so much for your help

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Computer That Turns on but Displays Nothing
The most common way that a computer "won't turn on" is when the PC actually does power on but doesn't display anything on...
Read more >
No Display or Black Screen on a Computer Monitor
If your monitor is getting power, but no image appears, the data cable may be the issue. Try using a different DVI, HDMI,...
Read more >
Don't Panic! 8 Solutions to Fix PC Turns On but No Display
Computer Turns On But no Display FAQ · Check the Power Supply, Laptop Charger and Battery · Disconnect All External Devices, Unplug All...
Read more >
What to Do When Your Computer Screen Won't Show a Picture
Has your computer screen stopped working? Here are some troubleshooting steps to take if your monitor fails to display a picture.
Read more >
How to Fix a No-Input Signal to a Computer
Unplug the cable running from your monitor to your PC and plug it back in, making sure the connection is firm. The most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found