My project was running perfectly but when i implement universal then i am getting \"window is not defined\".
My error is as below.
node_modules/hamm
You can use @squadette/hammerjs instead of hammerjs. @squadette/hammerjs is server side render friendly.
To use it, just run
npm i @squadette/hammerjs
to instal it. then replace change
import 'hammerjs';
to
import '@squadette/hammerjs';