When redering views on a server (like in a universal / isomorphic application) we do not have a window or document instance. This will result in an error in hammer.js.
Ofcourse hammer.js has no use in a server environment, but hammer.js should not throw an error when it's only being included (via require, or import).
This here, line 2643 in the hammer.js file:
})(window, document, 'Hammer');
is causing trouble, window and document are not defined in a server environment.
Posted a workaround in #930
This is fixed in @squadette/[email protected]: https://github.com/squadette/hammer.js/issues/2
any news on this?
Most helpful comment
any news on this?