Cannot read property 'getMonitor' of undefined
See original GitHub issueHi, Could you help me with this problem, please? I try to use SortableTree with touch support. I copied code sample (touch-support) from storybook app and when i try to use this:
import { SortableTreeWithoutDndContext as SortableTree } from "react-sortable-tree";
instead of this
import SortableTree from "react-sortable-tree";
I got error:
I have prepared a code sample to reproduce the error https://codesandbox.io/s/ov1n19x0r5
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Unhandled Runtime Error => TypeError: Cannot read ...
Looks like the 'this' context is being lost. add a new method using arrow function handleChange = event => this.
Read more >Using SortableTreeWithoutDndContext, cannot read ...
Cannot read property 'getMonitor' of undefined. It looks like it's trying to set this.clearMonitorSubscription in the ComponentWillMount .
Read more >Cannot read properties of undefined (reading 'DOB') in for ...
When initializing your for loop to iterate through an array using its length and starting at 0 you need to use < rather...
Read more >Screen.width - Web APIs - MDN Web Docs - Mozilla
The Screen.width read-only property returns the width of the screen in CSS pixels.
Read more >Can I turn off PDW tracking data and still be able to get ...
Can I turn off PDW tracking data and still be able to get monitor based events? ... If you need to disable PDW...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@votiv Yes, just switch the version of react-dnd from latest to 3.0.2. In my case it helped. https://codesandbox.io/s/98kj095wwy
@NoureldeanSaed There is a working example https://codesandbox.io/s/98kj095wwy. Please, check all dependencies versions in it.