है I शेड्यूलिंग कार्यक्षमता के साथ कैलेंडर प्रदर्शित करने के लिए Primeng के शेड्यूल घटक का उपयोग कर रहा हूं। लेकिन मैं नीचे त्रुटि मिलती रहती है:currentView.start शून्य पूर्ण कैलकुलेटर
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)
आगे डिबगिंग पर, मैंने पाया कि currentView.start
रिक्त है और एक ही rangeStart
को स्थापित कर रही है जो संपत्ति है कि fetchEventSource
में क्लोन बुला रहा है है। मैं defaultview
महीने का उपयोग कर रहा हूं। मैं विचारों से बाहर भाग गया है। कृपया इसमें मेरी सहायता करें। पीएस मैं इसे कोणीय 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;
}
}
.....
इस त्रुटि का क्या कोड उत्पन्न करता है? –
@ गुंटर ज़ोचबॉउर कृपया संपादन देखें। धन्यवाद। –
क्या आपने चेक किया है कि 'rangeStart' या' rangeEnd' '! = Null' हैं जब 'clone()' उन पर कॉल किया जाता है? –