Hello I have this problem, 5 days ago The library worked fine, but today I'm trying to run 'npm run dev' in my project, and gives me this error.. (I have reinstalled through npm and it doesn't work)

After some time, this was solved replacing:
import { SortableTree } from 'react-sortable-tree'
with
const isBrowser = typeof window !== 'undefined'
const SortableTree = isBrowser ? require('react-sortable-tree').default : undefined
Is strange, but it solved the problem
Hi, I've got the same issue. If this component is supposed to be used with SSR I suppose this is a bug.
Most helpful comment
After some time, this was solved replacing:
import { SortableTree } from 'react-sortable-tree'with
Is strange, but it solved the problem