I use angular-material in my project. I am getting this warnings:
Could not find HammerJS. Certain Angular Material components may not work correctly.
The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.
I know this is a duplicate of this question
In the answer they have mentioned that:
- We have to add "^2.0.8",todependenciesin package.json file.
- import 'hammerjs/hammer';in polyfills.ts file.
In my case everything is fine, still I am getting the same warning in browser console.
 
     
     
     
     
     
     
    