Week and day views are visibly broken when using webpack
See original GitHub issueI 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()
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
could it be that you’re including
@fullcalendar/daygrid/main.css
twice when you should be including@fullcalendar/timegrid/main.css
as well?Yes, you are right. That solves the problem. Thanks.