Can anyone pls help me to fix hammer error
})(window, document, 'Hammer');
^
ReferenceError: window is not defined
at Object._MAP.8 (/Users/ks89/git/universal-starter/dist/server.js:126460:4)
in angular universal.
You need to import hammer
from main.ts
, not directly from the module. That way, it won't be included server side
https://github.com/angular/material2/blob/master/guides/getting-started.md#step-5-gesture-support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With