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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

"r is undefined" error when loading Schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

144599 May 14,2019 07:08 AM UTC May 15,2019 06:17 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
Anna Koponen
Asked On May 15, 2019 05:11 AM UTC

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


Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon