jqxcalender 中的错误:未定义全球化

Error In jqxcalender : Globalize is not defined

我在我的 angular 组件中使用 jqxcalender,当加载数据时我收到此错误 Globalize is not defined in the console 我该如何解决此错误

我试过在代码中导入 jqxcalender

<jqxCalendar [width]="'100%'" [height]="390" [titleHeight]="50" [columnHeaderHeight]="80" [enableHover]="false [dayNameFormat]="'firstLetter'" [firstDayOfWeek]="1" [showOtherMonthDays]="false"  #myCalendar ></jqxCalendar>




DetailComponent.html:20 ERROR ReferenceError: Globalize is not defined
    at c.<computed>._format (jqxcalendar.js:8)
    at c.<computed>.renderTitle (jqxcalendar.js:8)
    at c.<computed>._renderSingleCalendar (jqxcalendar.js:8)
    at c.<computed>.render (jqxcalendar.js:8)
    at c.<computed>.refresh (jqxcalendar.js:8)
    at Object.push../node_modules/jqwidgets-scripts/jqwidgets/jqxcore.js.b.jqx.applyWidget (jqxcore.js:15)
    at HTMLDivElement.<anonymous> (jqxcore.js:15)
    at Function.each (jqxcore.js:8)
    at init.each (jqxcore.js:8)
    at init.b.fn.<computed> [as jqxCalendar] (jqxcore.js:15)

只需将 jqxwidget 更新到当前版本即可解决