Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 639
Habchi Avatar asked Dec 08 '22 13:12

Habchi


1 Answers

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

You just have to update your @types/jquery

npm update @types/jquery
like image 97
Bene Avatar answered Jan 06 '23 03:01

Bene