Comments (2)
The issue related with attemption to refer to the document
object, which is absent on server side.
It can be solved by using require('draggable')
importing style in componentDidMount section (used only onclient side).
Maybe it will be good to inform the lib users to avoid ES6 import style or make some additional environment checks.
from draggable.
This is a browser library. To run it on the server you will need jsdom or another DOM shim.
from draggable.
Related Issues (20)
- Error with webpack when importing ES6 style HOT 8
- Handle element HOT 2
- Calling Draggable(element) raises an Error
- Limit by element doesn't work (Vue.js) HOT 3
- Draggable iframe HOT 1
- Textarea HOT 2
- onDrag "x" and "y" always are NaN HOT 2
- contenteditable="true" not working HOT 2
- Allow instances to handle more than one element HOT 3
- How to set default position for element? HOT 2
- How to use as drag and drop HOT 1
- how to using filterTarget prop HOT 2
- destroy ? HOT 1
- how can I save final draged draggable to svg ? HOT 1
- require syntax
- How to drag a sub-elements from draggable section
- Prevent click when dragging ?
- Content clicks don't register on mobile devices HOT 1
- "set" method to set the same location. The first set succeeds and the next set fails.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draggable.