question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in fullcalendar.d.ts & scheduler.d.ts

See original GitHub issue

Bug 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!

problem-childs.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
satoshionodacommented, Aug 3, 2018

@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

12reactions
DaceloNovaeguineaecommented, Dec 30, 2017

I’ve just installed npm install --save-dev @types/jquery@3.2.7 and it’s works.

package.json:
"fullcalendar": "^3.8.0",
"jquery": "^3.2.1",
"@types/jquery": "^3.2.7",
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found