我正在面对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,但不知道为什么会遇到上述问题。