Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: document is not defined when reload page. #28

Open
jose920405 opened this issue Sep 4, 2017 · 2 comments
Open

ReferenceError: document is not defined when reload page. #28

jose920405 opened this issue Sep 4, 2017 · 2 comments

Comments

@jose920405
Copy link

jose920405 commented Sep 4, 2017

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

@tapesec
Copy link

tapesec commented Apr 29, 2018

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

@ali-hasani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants