$ .extend не является функцией с React SSR - PullRequest
0 голосов
/ 30 мая 2018

Я столкнулся с проблемой в реакции 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, но понятия не имею, почему возникла вышеуказанная проблема.

...