TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 434 forks source link

JQuery plug ins not working #623

Open LiverpoolOwen opened 6 years ago

LiverpoolOwen commented 6 years ago

I have followed the instructions for adding Jquery and its plug ins.

I am seeing the following error __WEBPACK_IMPORTED_MODULE_0_jquery__(...).jexcel is not a function

Additional information:

Am i missing something? Thanks

GRIMMR3AP3R commented 6 years ago

It seems you are missing the TypeScript instructions. Make sure you add jquery to tsconfig.json and then create the interface in typings.d.ts. This is so typescript knows how to call and use the javascript. This article should help https://medium.com/all-is-web/angular-5-using-jquery-plugins-5edf4e642969