Невозможно установить свойство fullcalendar of undefined в Meteor React - PullRequest
0 голосов
/ 15 ноября 2018

Я пытаюсь использовать пакет fullcalendar-responsewrapper npm в своем приложении meteor response.Но я получаю сообщение об ошибке при использовании импорта:

import React from 'react'; 
import ReactDOM from 'react-dom'; 
import FullCalendar from 'fullcalendar-reactwrapper';

Это ошибка, которую я получаю,

C: \ Users \ aruns \ AppData \ Local.meteor \ packages \ обещание\ 0.11.1 \ npm \ node_modules \ meteor-обещание \ promise_server.js: 218 ошибка выброса;

TypeError: Cannot set property 'fullCalendar' of undefined
at Object.<anonymous> (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:26051:19)
at $.fullCalendar.version (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:26028:37)
at Object.map../af (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:26037:3)
at __webpack_require__ (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:30:30)
at Object.defineProperty.value (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:25910:21)
at __webpack_require__ (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:30:30)
at Object.<anonymous> (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:41903:18)
at __webpack_require__ (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:30:30)
at C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:76:18
at C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:79:10
at webpackUniversalModuleDefinition (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:3:20)
at Object.<anonymous> (C:\PRJ\ldrre\node_modules\fullcalendar-reactwrapper\lib\index.js:10:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at npmRequire (C:\PRJ\ldrre\.meteor\local\build\programs\server\npm-require.js:133:10)
at Module.useNode (packages\modules-runtime.js:664:18)
at index.js (packages\modules.js:952:8)

Я использую Meteor 1.8, и ниже приведен мой npm diff после fullcalendar,

C:\PRJ\ldrre>git diff package.json
diff --git a/package.json b/package.json
index 52bca3d..4628971 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "commonmark": "^0.28.1",
     "core-js": "^2.5.5",
     "file-saver": "^1.3.8",
+    "fullcalendar-reactwrapper": "^1.0.7",
     "griddle-react": "^1.13.1",
     "handlebars": "^4.0.11",
     "jquery": "2.2.4",

C:\PRJ\ldrre>git diff package.json
diff --git a/package.json b/package.json
index 52bca3d..4628971 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "commonmark": "^0.28.1",
     "core-js": "^2.5.5",
     "file-saver": "^1.3.8",
+    "fullcalendar-reactwrapper": "^1.0.7",
     "griddle-react": "^1.13.1",
     "handlebars": "^4.0.11",
     "jquery": "2.2.4",

Пожалуйста, дайте мне знать, что мне здесь не хватает.Заранее спасибо за помощь: -)

...