Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery $.extend不是带有React SSR的函数_Jquery_Reactjs_Fullcalendar_Fullcalendar Scheduler_React Ssr - Fatal编程技术网

Jquery $.extend不是带有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

我在react 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,但不知道为什么会出现上述问题。

您是先加载jQuery吗?是的,我已经添加了jQuery,这不是我所要求的。您以什么顺序调用脚本?从“jquery”导入$;输入“时刻”;导入“完整日历”;导入“完整日历计划程序”;如上所述,将jquery导入从“jquery”更改为
import*as$
从“jQuery”导入*为jQuery