fullcalendar - 组件上的聚合物 3.x 全日历导入错误
问题描述
我在导入 Fullcalendar JS 库时遇到问题。我将它与 NPM 以及 momentjs 和 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:大多数全日历包装器或组件不会迁移到聚合物 3.x 中
解决方案
推荐阅读
- python - 下载 Dropbox 文件夹中的所有 .mp4 文件
- ros - 添加要导入ROS的包
- javascript - 需要动画数字
- javascript - 来自父级的 Angular 子组件事件多次触发
- filter - NumberRangeColumnFilter 的反应表 globalFilter 示例
- excel - 使用 Excel 打开新的 PowerPoint 演示文稿失败
- ngrok - ngrok,无法完成隧道连接
- javascript - 未捕获的类型错误:无法读取 AJAX 对象上未定义的属性“地图”
- linux - 如何比较bash中单个数组的值之间的不同参数?
- android - Viewholder 仅在滚动时绑定图像,而不是在初始加载时