私は、スケジュール機能を備えたカレンダーを表示するためにPrimengのスケジュールコンポーネントを使用しています。しかし、私は以下のエラーを取得しておいてください。currentView.start
がnullで、同じことがfetchEventSource
でクローンを呼び出しているプロパティであるrangeStart
に設定されていることをcurrentView.startはnull fullcalendar
ORIGINAL EXCEPTION: TypeError: Cannot read property 'clone' of null
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'clone' of null
at _fetchEventSource (http://localhost:8100/build/js/fullcalendar.js:10703:16)
at fetchEventSource (http://localhost:8100/build/js/fullcalendar.js:10635:3)
at fetchEvents (http://localhost:8100/build/js/fullcalendar.js:10629:4)
at fetchAndRenderEvents (http://localhost:8100/build/js/fullcalendar.js:9789:3)
at getAndRenderEvents (http://localhost:8100/build/js/fullcalendar.js:9780:4)
at renderView (http://localhost:8100/build/js/fullcalendar.js:9671:6)
at initialRender (http://localhost:8100/build/js/fullcalendar.js:9588:3)
at Calendar_constructor.render (http://localhost:8100/build/js/fullcalendar.js:9552:4)
at HTMLDivElement.<anonymous> (http://localhost:8100/build/js/fullcalendar.js:53:13)
at Function.each (http://localhost:8100/build/js/jquery.min.js:2:2813)
はさらに、デバッグでは、私が見つけました。私はdefaultview
月を使用しています。私はアイデアがなくなった。ここで私を助けてください。 P.S私は角度2でこれを試しています。私はfullCalendar version 2.7.3
を使用しています。 jquery
のバージョンは3.0.0、moment.js
のバージョンは2.13.1です。
以下のコードでエラーが発生します。それはfullCalendar.js
の一部です。
function _fetchEventSource(source, callback) {
var i;
var fetchers = FC.sourceFetchers;
var res;
for (i=0; i<fetchers.length; i++) {
res = fetchers[i].call(
t, // this, the Calendar object
source,
rangeStart.clone(),
rangeEnd.clone(),
options.timezone,
callback
);
if (res === true) {
// the fetcher is in charge. made its own async request
return;
}
else if (typeof res == 'object') {
// the fetcher returned a new source. process it
_fetchEventSource(res, callback);
return;
}
}
.....
どのようなコードがこのエラーを生成しますか? –
@GünterZöchbauer編集をご覧ください。ありがとうございました。 –
'.clone()'が呼び出されたときに 'rangeStart'または' rangeEnd'が '!= null'であるかどうかチェックしましたか? –