Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Hammer is not defined error after upgrading to Angular 9
posted

Hello!

after upgrading to Angular 9 and following the instructions of
https://ko.infragistics.com/products/ignite-ui-angular/angular/components/general/update_guide.html#additional-manual-changes
I
 keep getting a "Hammer is not defined" error in the browser console.

("IgxGridRowComponent.html:73 ERROR ReferenceError: Hammer is not defined at new HammerGesturesManager" to be precise.)

I tried to add the HammerModule in many ways and different locations (app.module and below). Also I tried to switch off switch off Angular 9’s Ivy but had no luck.

In the end I imported it by string in main.ts (import "hammerjs";) This depecated way of importing still works somehow but for obvious reasons I want to get rid of it.

Ideas anybody?