Closed caiocaprio closed 5 years ago
@caiocaprio yes, that's bc node doesn't have a concept of window....you have to "polyfill" window with jsdom or something or only execute this polyfill client side
This has been fixed in later here: https://github.com/kumarharsh/custom-event-polyfill
You will need to follow @justinhp's advice for using it server-side.
CustomEvent.prototype = window.Event.prototype;
in custom-event-polyfill\custom-event-polyfill.js:42