error in fullcalendar.d.ts & scheduler.d.ts
See original GitHub issueBug Reports
Error in fullcalendar.d.ts & scheduler.d.ts npm files. I deleted “node_modules” and reinstalled it. Same issue
I built a new Angular 5 project and installed fullcalendar & fullcalendar-scheduler. When compiling I get the following errors:
ERROR in node_modules/fullcalendar-scheduler/dist/scheduler.d.ts(760,44): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar-scheduler/dist/scheduler.d.ts(795,66): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(695,36): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(696,29): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(697,20): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(759,22): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(775,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(988,23): error TS2304: Cannot find name 'JQueryEventObject'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1401,70): error TS2304: Cannot find name 'JQueryAjaxSettings'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1603,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(1623,50): error TS2304: Cannot find name 'JQueryPromise'.
node_modules/fullcalendar/dist/fullcalendar.d.ts(2588,50): error TS2304: Cannot find name 'JQueryPromise'.
I found the following errors in the “fullcalendar.d.ts” & “scheduler.d.ts” file, :
JQueryPromise JQueryEventObject JQueryAjaxSettings
When I went to the node_modules/fullcalendar/dist/fullcalendar.d.ts, I opened the file, and found that VS Code is reporting “[ts] Cannot find name ‘JQueryPromise’.” Same for the others.
A quick-fix was to change the type to ‘any’ but I felt it prudent to open an issue for them.
I’ve attached the files as evidence. Thanks! Happy Holidays!
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Fullcalendar + Angular 6 and jQuery: TS2304: Cannot find ...
ERROR in node_modules/fullcalendar/dist/fullcalendar.d.ts(696,36): error TS2304: Cannot find name 'JQueryPromise'.
Read more >TypeScript Support - FullCalendar
FullCalendar and Scheduler now officially support TypeScript! TypeScript is a popular type-aware superset of the JavaScript language that is ...
Read more >Build fails for Mirage 9.0.1 - Prime Community Forum
ERROR in node_modules/@fullcalendar/daygrid/main.d.ts:1:1 - error TS6200: ... As you know, the Schedule component uses the FullCalendar API, ...
Read more >ts2339 error - You.com | The search engine you control.
The lib.d.ts does not ship with stuff that is browser specific. However you can easily do ... fullcalendar/fullcalendar-angularScheduler error TS2339#224.
Read more >CHANGELOG.md - FullCalendar - Fossies
fixed table-related Chrome 91 bug causing timegrid view with ... TypeScript definition file (fullcalendar.d.ts) included in npm package (#3889) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@subbumsd @menthollisa
Same happened on me.
If you are using fullcalendar with Angular. Adding
import * as $ from 'jquery';
at AppModule solved the problem.https://github.com/lbertenasco/ap-ng2-fullcalendar#usage
I’ve just installed
npm install --save-dev @types/jquery@3.2.7
and it’s works.