question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'getMonitor' of undefined

See original GitHub issue

Hi, 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: image

I have prepared a code sample to reproduce the error https://codesandbox.io/s/ov1n19x0r5

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
slemvscommented, Jul 5, 2018

@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

0reactions
slemvscommented, Nov 1, 2018

@slemvs Unfortunately downgrading react-dnd to 3.0.2 did not work… Still same error.

@NoureldeanSaed There is a working example https://codesandbox.io/s/98kj095wwy. Please, check all dependencies versions in it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found