Search code examples
angularfullcalendarangular7

Ng-fullcalendar with angular 7


We're working on migrating our application from angular 6 to 7 and we're using Ng-fullCalendar.

Our package.json file includes the following versions:

"fullcalendar": "3.6.1",
"ng-fullcalendar": "1.7.1"

When compiling our project, we're getting the following error:

ERROR in node_modules/@types/jquery/index.d.ts(6123,66): error TS2344: Type '"timeout" | "onreadystatechange" | "responseType" | "withCredentials" | "msCaching"' does not satisfy the constraint '"abort" | "open" | "timeout" | "response" | "getAllResponseHeaders" | "getResponseHeader" | "overrideMimeType" | "readyState" | "responseText" | "setRequestHeader" | "status" | ... 22 more ... | "dispatchEvent"'.
      Type '"msCaching"' is not assignable to type '"abort" | "open" | "timeout" | "response" | "getAllResponseHeaders" | "getResponseHeader" | "overrideMimeType" | "readyState" | "responseText" | "setRequestHeader" | "status" | ... 22 more ... | "dispatchEvent"'.

Is there any workaround to resolve this problem?


Solution

  • This issue is already fixed: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/28000

    You just have to update your @types/jquery

    npm update @types/jquery