ReferenceError: document is not defined when reload page.
jose920405 opened this issue · 2 comments
jose920405 commented
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
tapesec commented
i think dragula doesn't support server side rendering ...
ali-hasani commented
Hi
Please support it. we need it in out project ! now we have to remove it because SSR is very important for us ..