svelte-dnd-action icon indicating copy to clipboard operation
svelte-dnd-action copied to clipboard

Uncaught TypeError: Cannot destructure property 'items' of 'dzToConfig.get(...)' as it is undefined.

Open space-nuko opened this issue 2 years ago • 3 comments
trafficstars

Hi I'm sometimes getting this error when trying to drag an item, it causes the whole dnd functionality to stop working

Uncaught TypeError: Cannot destructure property 'items' of 'dzToConfig.get(...)' as it is undefined.
    at handleDrop (svelte-dnd-action.js?v=9665cf0f:797:9)
handleDrop @ svelte-dnd-action.js?v=9665cf0f:797

space-nuko avatar May 17 '23 03:05 space-nuko

link to REPL that reproduces the problem please

isaacHagoel avatar May 17 '23 03:05 isaacHagoel

I think I've figured it out, it's when recreating a child element is too expensive and you drop one of the elements very quickly. Sometimes I can trigger the bug by moving around the elements enough on this

https://svelte.dev/repl/a3be745847914caaabcd651546edc6dd?version=3.59.1

space-nuko avatar May 20 '23 14:05 space-nuko

this entire thing is super laggy on my machine but I can't get it to throw the error. can you make a video (with the console open if possible)?

isaacHagoel avatar May 20 '23 23:05 isaacHagoel