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.

Week and day views are visibly broken when using webpack

See original GitHub issue

I am using webpack including library like

import '@fullcalendar/core/main.css'
import '@fullcalendar/daygrid/main.css'
import '@fullcalendar/daygrid/main.css'

import { Calendar } from '@fullcalendar/core';
import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';

let calendarEl = document.createElement('div')
calendarEl.id = 'calendar'

new Calendar(calendarEl, {
            plugins: [interactionPlugin, dayGridPlugin, timeGridPlugin ],
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'dayGridMonth,timeGridWeek,timeGridDay'
              },
              defaultDate: '2019-02-12',
              navLinks: true, // can click day/week names to navigate views
              selectable: true,
              selectMirror: true,
              select: function(arg) {
                var title = prompt('Event Title:');
                if (title) {
                  calendar.addEvent({
                    title: title,
                    start: arg.start,
                    end: arg.end,
                    allDay: arg.allDay
                  })
                }
                calendar.unselect()
              },
              editable: true,
              eventLimit: true, // allow "more" link when too many events
              events: [
                {
                  title: 'All Day Event',
                  start: '2019-02-01'
                },
                {
                  title: 'Long Event',
                  start: '2019-02-07',
                  end: '2019-02-10'
                },
                {
                  groupId: 999,
                  title: 'Repeating Event',
                  start: '2019-02-09T16:00:00'
                },
                {
                  groupId: 999,
                  title: 'Repeating Event',
                  start: '2019-02-16T16:00:00'
                },
                {
                  title: 'Conference',
                  start: '2019-02-11',
                  end: '2019-02-13'
                },
                {
                  title: 'Meeting',
                  start: '2019-02-12T10:30:00',
                  end: '2019-02-12T12:30:00'
                },
                {
                  title: 'Lunch',
                  start: '2019-02-12T12:00:00'
                },
                {
                  title: 'Meeting',
                  start: '2019-02-12T14:30:00'
                },
                {
                  title: 'Happy Hour',
                  start: '2019-02-12T17:30:00'
                },
                {
                  title: 'Dinner',
                  start: '2019-02-12T20:00:00'
                },
                {
                  title: 'Birthday Party',
                  start: '2019-02-13T07:00:00'
                },
                {
                  title: 'Click for Google',
                  url: 'http://google.com/',
                  start: '2019-02-28'
                }
              ]
        });

        this.calendar.render()

bug

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
arshawcommented, Mar 12, 2019

could it be that you’re including @fullcalendar/daygrid/main.css twice when you should be including @fullcalendar/timegrid/main.css as well?

0reactions
tnusraddinovcommented, Mar 13, 2019

Yes, you are right. That solves the problem. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to boost the speed of your webpack build?
Focus error, a morning lost. Since this command launches a webpack build in production mode, I figured out that the culprit was webpack...
Read more >
Images always appear broken when using webpack react
I have a Webpack that isn't properly loading my images. In the network tab, my images are coming back as a 200 response,...
Read more >
Getting started with webpack - RIMdev
The fix: · First run npm install --save-dev css-loader style-loader to add the npm packages · then create a webpack.config.js file at the...
Read more >
CSS fix for 100vh in mobile WebKit - Matt Smith
Not long ago there was some buzz around how WebKit handles 100vh in CSS, essentially ignoring the bottom edge of the browser viewport....
Read more >
How to fix nasty circular dependency issues once and for all in ...
In the many projects I have maintained so far, sooner or later I always run into the same issue: circular module dependencies.
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