Ошибка: нет доступных плагинов для просмотра FullCalendar. Angular9 / HTML5 - PullRequest
0 голосов
/ 16 апреля 2020

ОШИБКА:

 Error: No available FullCalendar view plugins.
    at reduceDateProfile (main.esm.js:5632)
    at reduce (main.esm.js:5594)
    at Calendar.push../node_modules/@fullcalendar/core/main.esm.js.Calendar.reduce (main.esm.js:6768)
    at Calendar.push../node_modules/@fullcalendar/core/main.esm.js.Calendar.dispatch (main.esm.js:6726)
    at main.esm.js:6699
    at Calendar.push../node_modules/@fullcalendar/core/main.esm.js.Calendar.batchRendering (main.esm.js:6787)
    at Calendar.push../node_modules/@fullcalendar/core/main.esm.js.Calendar.hydrate (main.esm.js:6696)
    at new Calendar (main.esm.js:6597)
    at FullCalendarComponent.ngAfterViewInit (fullcalendar-angular.js:254)
    at callHook (core.js:3937)

Код:

var calendarEl:HTMLElement = document.getElementById('calendar');
var calendar = new Calendar(calendarEl, {  
    plugins: [bootstrapPlugin,dayGridPlugin,timeGrigPlugin,listWeekPlugin,interactionPlugin],
    editable: true,
    navLinks: true,
    selectable :true,
    locale:frLocale,
    header:{
            left:'dayGridMonth,timeGridWeek,timeGridDay,listWeek',
            center:'title',
            right:'today prevYear,prev,next,nextYear'
    },
    footer :{
        center :'title',
        right :'prev,next'

    },
});

...