最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Angular 12 + DevExtreme 20.1.9: TypeError Cannot Read Properties of Undefined (reading 'getHashCode&#39

programmeradmin7浏览0评论

I am using Angular 12.2.17 and DevExtreme 20.1.9, and I encountered the following error when using the dx-scheduler component:

error.handler.ts:12  client error.  TypeError: Cannot read properties of undefined (reading 'getHashCode')
    at Object.getHashCode (stimulsoft.reports.js:39:20900)
    at Object.getHashCode (stimulsoft.reports.js:39:21024)
    at OptionManager.value (option_manager.js:102:1)
    at OptionManager.value (option_manager.js:72:1)
    at OptionManager.value (option_manager.js:115:1)
    at Options.value (index.js:203:1)
    at inheritor.option (component.js:325:1)
    at inheritor._initOptions (component.js:116:1)
    at inheritor._createOptions (component.js:110:1)
    at inheritor.ctor (component.js:81:1)

Additionally, I see another error related to triggerResize

TypeError: Cannot read properties of undefined (reading 'triggerResize')
    at inheritor._dimensionChanged (ui.scheduler.js:706:32)
    at inheritor._dimensionChanged (class.js:17:1)
    at push.83882.Callback._fireCore (callbacks.js:24:1)
    at push.83882.Callback.fireWith (callbacks.js:76:1)
    at push.83882.Callback.fire (callbacks.js:84:1)
    at handleResize (resize_callbacks.js:43:1)
    at _ZoneDelegate.invokeTask (zone.js:406:1)
    at Object.onInvokeTask (core.js:28767:1)
    at _ZoneDelegate.invokeTask (zone.js:405:1)
    at Zone.runTask (zone.js:178:1)


<div class="container py-5 my-5">
  <dx-scheduler [dataSource]="appointments"
                [currentDate]="currentDate">
  </dx-scheduler>
</div>


@Component({
  selector: 'inspections-new',
  templateUrl: 'inspections-newponent.html',
})
export class InspectionsNewComponent {
  appointments = [{
    text: "Website Re-Design Plan",
    startDate: new Date("2016-04-25T01:30:00.000Z"),
    endDate: new Date("2016-04-25T03:30:00.000Z")
  }, {
    text: "Book Flights to San Fran for Sales Trip",
    startDate: new Date("2016-04-25T09:00:00.000Z"),
    endDate: new Date("2016-04-25T10:00:00.000Z")
  }];
  
  currentDate = new Date(2016, 4, 25);
}  

Expected Outcome: I expected dx-scheduler to render appointments without errors.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论