fullcalendar & Angular 5

回眸只為那壹抹淺笑 提交于 2019-11-28 20:47:26

The issue you were having has now been fixed thanks to the GitHub issue you raised.

I believe running npm install --save-dev @types/jquery will correctly fix this issue as i have encountered the same problem, and running this did the trick (after i found this post and the link to the GitHub issue).

to quote the fix on GitHub: "this is now accounted for in the docs: https://fullcalendar.io/docs/typescript/"

So it seems as though there is something wrong in the *.d.ts files in the node_modules folder. I've opened an issue in the GitHub project

https://github.com/fullcalendar/fullcalendar/issues/3991

I went into the replaced the corresponding issues type with 'any':

node_modules/fullcalendar/dist/fullcalendar.d.ts
node_modules/fullcalendar-scheduler/dist/scheduler.d.ts

'JQueryPromise'
'JQueryEventObject'
'JQueryAjaxSettings'

Ironically, after fixing that I am no longer having the "Refuse to load font" issue either. Cannot comment on that one. All I know is that it's working as it should.

Happy holidays!

Your project doesn't contains jquery typings. Try to add them using this command

npm install --save-dev @types/jquery@3.2.7

This issue has been raised on full calendar issue tracker (https://github.com/fullcalendar/fullcalendar/issues/3991)

Hi I know that it is an old question but this npm install --save-dev @types/jquery doesn't worked for me. The faster solution was:

  • Open the Manage NuGet Packages for Solution (The visual option of Package Manager) at Tools>NuGet Package Manager> Manage NuGet Packages for Solution
  • Write in the search box: jquery.type
  • Find jquery.TypeScript.DefinitelyTyped package
  • Install inside your Web project
  • Solved

I hope this may have helped those who were in the same situation as me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!