We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

"r is undefined" error when loading Schedule

EDIT: This was resolved with the newest patch. It now works.

Hello!

I have an Angular project where I use the Schedule. On my machine the calendar loads ok and I can add events, but in the staging environment I get two errors and I have not been able to figure out why.

Might there be some dependencies that are not transferred with the build?

The Scheduler loads and it can be seen in the window, but it is not working.

I get the events with UrlAdaptor:
private dataManager: DataManager = new DataManager({
    url: '/api/Calendar/getCalendarEvents',
    crudUrl: '/api/Calendar/UpdateData',
    adaptor: new UrlAdaptor
  });

My eventsettingsmodel:
public eventSettings: EventSettingsModel = {
    dataSource: this.dataManager,
    fields: {
      id: 'id',
      startTime: { name: 'startTime', title: 'Starts' },
      endTime: { name: 'endTime', title: 'Ends' },
      subject: { name: 'subject', title: 'something' }
    }
  };

The scheduler tag
              (popupOpen)="onPopupOpen($event)" (eventRendered)="onEventRendered($event)" [showQuickInfo]="showQuickInfo" locale="fi" timezone="Europe/Helsinki">


First error is when the scheduler is loaded:

ERROR TypeError: "r is undefined"

    compile https://xxx/main.306b93525592b00087fe.js:1

    Mt https://xxx/main.306b93525592b00087fe.js:1

    getEventWindowContent https://xxx/main.306b93525592b00087fe.js:1

    renderEventWindow https://xxx/main.306b93525592b00087fe.js:1

    e https://xxx/main.306b93525592b00087fe.js:1

    initializePopups https://xxx/main.306b93525592b00087fe.js:1

    renderElements https://xxx/main.306b93525592b00087fe.js:1

    initializeResources https://xxx/main.306b93525592b00087fe.js:1

    render https://xxx/main.306b93525592b00087fe.js:1

    appendTo https://xxx/main.306b93525592b00087fe.js:1

    ngAfterViewInit https://xxx/main.306b93525592b00087fe.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    onInvokeTask https://xxx/main.306b93525592b00087fe.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    runTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    invoke https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    0 https://xxx/polyfills.08159f5f0a398c3b34da.js:1


The second error is if I click and try to add an event:

ERROR TypeError: "this.parent.eventWindow is undefined"

    cellDblClick https://xxx/main.306b93525592b00087fe.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    onInvokeTask https://xxx/main.306b93525592b00087fe.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    runTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    _ https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    m https://xxx/polyfills.08159f5f0a398c3b34da.js:1

main.306b93525592b00087fe.js:1:809267

    _t https://xxx/main.306b93525592b00087fe.js:1

    handleError https://xxx/main.306b93525592b00087fe.js:1

    next https://xxx/main.306b93525592b00087fe.js:1

    o https://xxx/main.306b93525592b00087fe.js:1

    __tryOrUnsub https://xxx/main.306b93525592b00087fe.js:1

    next https://xxx/main.306b93525592b00087fe.js:1

    _next https://xxx/main.306b93525592b00087fe.js:1

    next https://xxx/main.306b93525592b00087fe.js:1

    next https://xxx/main.306b93525592b00087fe.js:1

    emit https://xxx/main.306b93525592b00087fe.js:1

    onHandleError https://xxx/main.306b93525592b00087fe.js:1

    invoke https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    run https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    runOutsideAngular https://xxx/main.306b93525592b00087fe.js:1

    onHandleError https://xxx/main.306b93525592b00087fe.js:1

    handleError https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    runTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    invokeTask https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    _ https://xxx/polyfills.08159f5f0a398c3b34da.js:1

    m https://xxx/polyfills.08159f5f0a398c3b34da.js:1


1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team May 15, 2019 06:17 AM UTC

Hi Anna,  
 
Greetings from Syncfusion. 
 
We are happy to hear that issue resolved at your end. 
 
Regards, 
Karthi 


Loader.
Live Chat Icon For mobile
Up arrow icon