我在反应 SSR 中遇到问题。
添加了两个插件,如下
import 'fullcalendar';
import 'fullcalendar-scheduler';
FullCalander 在终端中引发错误,如下所述
webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:1256
var oldMomentProto = $.extend({}, newMomentProto); // copy of original moment methods
^
TypeError: $.extend is not a function
at Object.defineProperty.value (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:1256:24)
at __webpack_require__ (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:30:30)
at Object.defineProperty.value (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:4549:20)
at __webpack_require__ (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:30:30)
at Object.defineProperty.value (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:1754:25)
at __webpack_require__ (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:30:30)
at Object.defineProperty.value (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:12374:19)
at __webpack_require__ (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:30:30)
at module.exports (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:73:18)
at eval (webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:76:10)
我也导入了 jQuery,但不知道为什么会出现上述问题。