title: fullcalender not working Uncaught ReferenceError: Calendar is not constructor
body: <p>I'm install <a href="https://fullcalendar.io/docs/getting-started" rel="nofollow noreferrer">Fullcalender</a> with </p>
  
  <pre><code>npm install --save @fullcalendar/core @fullcalendar/daygrid
  </code></pre>
  
  <p>and after install success.</p>
  
  <p>I'm import css on file 
  app.sass</p>
  
  <pre><code>//Calender
  @import '~@fullcalendar/core/main.css';
  @import '~@fullcalendar/daygrid/main.css';
  @import '~@fullcalendar/timegrid/main.css';
  @import '~@fullcalendar/list/main.css';
  </code></pre>
  
  <p>after that.
  app.js</p>
  
  <pre><code>window.Calendar = require('@fullcalendar/core');
  window.dayGridPlugin = require('@fullcalendar/daygrid');
  window.timeGridPlugin = require('@fullcalendar/timegrid');
  window.listPlugin = require('@fullcalendar/list');
  </code></pre>
  
  <p>and run command npm run watch</p>
  
  <p>after install and import and run command success , I try use example from <a href="https://github.com/fullcalendar/webpack-example" rel="nofollow noreferrer">this</a></p>
  
  <p>but, this error </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: Calendar is not constructor</p>
  </blockquote>
  
  <p>My code</p>
  
  <pre><code>var calendarEl = document.getElementById('calendar');
  
              var calendar = new Calendar(calendarEl, {
                  plugins: [interactionPlugin, dayGridPlugin, timeGridPlugin, listPlugin],
                  header: {
                      left: 'prev,next today',
                      center: 'title',
                      right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
                  },
                  defaultDate: '2018-01-12',
                  navLinks: true, // can click day/week names to navigate views
                  editable: true,
                  eventLimit: true, // allow "more" link when too many events
                  events: [
                      {
                          title: 'All Day Event',
                          start: '2018-01-01',
                      },
                      {
                          title: 'Long Event',
                          start: '2018-01-07',
                          end: '2018-01-10'
                      },
                      {
                          id: 999,
                          title: 'Repeating Event',
                          start: '2018-01-09T16:00:00'
                      },
                      {
                          id: 999,
                          title: 'Repeating Event',
                          start: '2018-01-16T16:00:00'
                      },
                      {
                          title: 'Conference',
                          start: '2018-01-11',
                          end: '2018-01-13'
                      },
                      {
                          title: 'Meeting',
                          start: '2018-01-12T10:30:00',
                          end: '2018-01-12T12:30:00'
                      },
                      {
                          title: 'Lunch',
                          start: '2018-01-12T12:00:00'
                      },
                      {
                          title: 'Meeting',
                          start: '2018-01-12T14:30:00'
                      },
                      {
                          title: 'Happy Hour',
                          start: '2018-01-12T17:30:00'
                      },
                      {
                          title: 'Dinner',
                          start: '2018-01-12T20:00:00'
                      },
                      {
                          title: 'Birthday Party',
                          start: '2018-01-13T07:00:00'
                      },
                      {
                          title: 'Click for Google',
                          url: 'http://google.com/',
                          start: '2018-01-28'
                      }
                  ]
              });
  
              calendar.render();
  </code></pre>
  
  <p>So, I try check my problem many many site but never find site example Laravel use npm install fullcalendar</p>
  
  <p>I'm try check on console.log </p>
  
  <p><a href="https://i.stack.imgur.com/YhePP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YhePP.png" alt="enter image description here"></a></p>