Could not find HammerJS in angular 6

There are 2 ways to solve this problem: Either include the (main) import in your main module’s file or polyfills.ts: import ‘hammerjs’; Or include the script from a CDN into your index.html file: <head> <!– … –> <script src=”https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js”></script> <!– … –> </head>

Angular – ‘Could not find HammerJS’

In your package.json file add this to dependencies “hammerjs”: “^2.0.8”, Or if you want an alternative automatic way just you can type npm i hammerjs –save (or npm i hammerjs@2.0.8 –save if you want, since 2.0.8 is the latest version nowdays) in your root project folder and test then, if the problem still occurring try … Read more

Consider marking event handler as ‘passive’ to make the page more responsive

For those receiving this warning for the first time, it is due to a bleeding edge feature called Passive Event Listeners that has been implemented in browsers fairly recently (summer 2016). From https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md: Passive event listeners are a new feature in the DOM spec that enable developers to opt-in to better scroll performance by eliminating … Read more