我正在尝试在流星反应应用程序中使用fullcalendar-reactwrapper npm软件包。但是,使用import时出现错误:
import React from 'react';
import ReactDOM from 'react-dom';
import FullCalendar from 'fullcalendar-reactwrapper';
这是我遇到的错误,
C:\ Users \ aruns \ AppData \ Local.meteor \ packages \ promise \ 0.11.1 \ npm \ node_modules \ meteor-promise \ 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差异,
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",
请让我知道我在这里想念的东西。预先感谢您的帮助:-)