bevacqua/react-dragula

ReferenceError: document is not defined when reload page.

jose920405 opened this issue · 2 comments

captura de pantalla 2017-09-04 a la s 12 06 36 p m

Line 4 in dragula.js

var crossvent = require('crossvent');

Line 24 in custom-event/index.js

'function' === typeof document.createEvent ? function CustomEvent (type, params) {

This error happens each time when i reload a page with dragula import.

The library works perfect if not doing reload to the page

i think dragula doesn't support server side rendering ...

Hi
Please support it. we need it in out project ! now we have to remove it because SSR is very important for us ..