Jquery $.extend不是带有React SSR的函数
我在react SSR中面临一个问题 添加了两个插件,如下所示Jquery $.extend不是带有React SSR的函数,jquery,reactjs,fullcalendar,fullcalendar-scheduler,react-ssr,Jquery,Reactjs,Fullcalendar,Fullcalendar Scheduler,React Ssr,我在react SSR中面临一个问题 添加了两个插件,如下所示 import 'fullcalendar'; import 'fullcalendar-scheduler'; FullCalander在终端中抛出一个错误,如下所述 webpack:///./node_modules/fullcalendar/dist/fullcalendar.js?:1256 var oldMomentProto = $.extend({}, newMomentProto); // copy of origi
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,但不知道为什么会出现上述问题。您是先加载jQuery吗?是的,我已经添加了jQuery,这不是我所要求的。您以什么顺序调用脚本?从“jquery”导入$;输入“时刻”;导入“完整日历”;导入“完整日历计划程序”;如上所述,将jquery导入从“jquery”更改为
import*as$代码>或从“jQuery”导入*为jQuery代码>