首页 > 解决方案 > FullCalendar:无法读取属性“fn”

问题描述

需要帮助。我在 asp.net webforms 中运行一个完整的日历插件。它向我显示了这个错误:

fullcalendar.js:1259 Uncaught TypeError: Cannot read property 'fn' of undefined
at Object.<anonymous> (fullcalendar.js:1259)
at __webpack_require__ (fullcalendar.js:35)
at Object.<anonymous> (fullcalendar.js:4554)
at __webpack_require__ (fullcalendar.js:35)
at Object.<anonymous> (fullcalendar.js:1759)
at __webpack_require__ (fullcalendar.js:35)
at Object.<anonymous> (fullcalendar.js:12379)
at __webpack_require__ (fullcalendar.js:35)
at fullcalendar.js:78
at fullcalendar.js:81

我猜这可能是我的脚本安排,我想我已经在 BundleConfig 中正确安排了它们:

bundles.Add(new ScriptBundle("~/bundles/fullcalendar").Include(
                        "~/Scripts/jquery.3.3.1.js",
                        "~/Scripts/moment.min.js",
                        "~/Scripts/fullcalendar.js"));

这是在母版页中:

<asp:PlaceHolder runat="server">
    <%: Scripts.Render("~/bundles/modernizr") %>
    <%: Scripts.Render("~/bundles/fullcalendar") %>
</asp:PlaceHolder>

非常感谢 !

标签: asp.netwebformsfullcalendar

解决方案


推荐阅读