react-hook-dragula icon indicating copy to clipboard operation
react-hook-dragula copied to clipboard

document is not defined

Open sarahk opened this issue 3 years ago • 2 comments

I'm trying to run this in nextjs but getting "document is not defined" for your two container example

https://github.com/jpribyl/react-hook-dragula/blob/main/example/src/examples/TwoContainerExample.tsx

in the terminal

error - ReferenceError: document is not defined

in console

test:1 GET https://localhost:3000/test 500 (Internal Server Error)

There are no compilation errors. What needs to be adjusted?

sarahk avatar Mar 17 '22 06:03 sarahk

Seems to be working in the live demo- can you provide code which will reproduce it? (I have never used nextjs so I'm not shocked that it would break but curious why)

jpribyl avatar Mar 31 '22 14:03 jpribyl

Haven't quite had a chance to get to this yet but hoping to soon! @sarahk have you discovered anything new here since March?

jpribyl avatar Jun 14 '22 18:06 jpribyl