полимер 3.x полная ошибка импорта календаря на компоненте - PullRequest
0 голосов
/ 30 декабря 2018

У меня проблема с импортом библиотеки Fullcalendar JS.Я установил его с помощью NPM вместе с моментами и jquery.

Однако я сталкиваюсь с этой ошибкой в ​​своем браузере.

fullcalendar.js:211 Uncaught TypeError: Cannot read property 'fn' of undefined
at Object.<anonymous> (fullcalendar.js:211)
at __webpack_require__ (fullcalendar.js:11)
at Object.<anonymous> (fullcalendar.js:743)
at __webpack_require__ (fullcalendar.js:11)
at Object.<anonymous> (fullcalendar.js:347)
at __webpack_require__ (fullcalendar.js:11)
at Object.<anonymous> (fullcalendar.js:1944)
at __webpack_require__ (fullcalendar.js:11)
at fullcalendar.js:20
at fullcalendar.js:20

Вот импорт для компонента.

import { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
import '@polymer/iron-ajax/iron-ajax.js';
import './shared-styles.js';
import 'jquery';
import moment from 'moment';
import 'fullcalendar';

Как мне решить эту проблему?

PS: большинство упаковщиков или компонентов fullcalendar не переносятся в полимер 3.x

...