Kendo UI Scheduler错误"this.intlService.weekendRange不是函数" [英] Kendo UI Scheduler error "this.intlService.weekendRange is not a function"

查看:107
本文介绍了Kendo UI Scheduler错误"this.intlService.weekendRange不是函数"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将调度程序更新为1.0.1版,但出现此错误:

I recently updated my scheduler to version 1.0.1 and I got this error:

ERROR TypeError: this.intlService.weekendRange is not a function
   at SchedulerComponent.get [as workWeek] (index.js:2536)
   at SchedulerComponent.push../node_modules/@progress/kendo-angular-scheduler/dist/fesm5/index.js.SchedulerComponent.notifyOptionsChange (index.js:2495)
   at SchedulerComponent.push../node_modules/@progress/kendo-angular-scheduler/dist/fesm5/index.js.SchedulerComponent.ngAfterContentInit (index.js:2243)
   at callProviderLifecycles (core.js:22409)
   at callElementProvidersLifecycles (core.js:22390)
   at callLifecycleHooksChildrenFirst (core.js:22380)
   at checkAndUpdateView (core.js:23311)
   at callViewAction (core.js:23548)
   at execEmbeddedViewsAction (core.js:23511)
   at checkAndUpdateView (core.js:23308)

HTML尚未更改,因此我怀疑更新将其破坏了.即使出现以下情况,该错误仍在行<kendo-scheduler>

The HTML hasn't changed so I suspect the update broke it. Even with the below the error is occuring on the line <kendo-scheduler>

<kendo-scheduler>
    <kendo-scheduler-month-view>
    </kendo-scheduler-month-view>
</kendo-scheduler>

调度程序月份似乎是唯一可行的视图(天,周全部错误地显示为1行)

The scheduler month seems to be the only view that works (day, week all appear incorrectly as 1 line)

推荐答案

当我查看npm更新时,收到如下警告:

When I looked at the npm update I got warnings like:

npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-buttons@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-dateinputs@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-dialog@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-dropdowns@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-popup@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-intl@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-angular-l10n@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @progress/kendo-angular-scheduler@1.0.1 requires a peer of @progress/kendo-recurrence@^1.0.0 but none is installed. You must install peer dependencies yourself.

一旦我解决了这些问题,我将不再收到错误消息.

Once I resolved these I no longer got the error.

这篇关于Kendo UI Scheduler错误"this.intlService.weekendRange不是函数"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆