xyflow: Bug - Uncaught TypeError: Cannot read property 'position' of undefined
My app is crashing due to an uncaught exception. See below for details. Perhaps this could be handled more gracefully such a console warning?
Uncaught TypeError: Cannot read property 'position' of undefined
at nodes.reduce.x (zoom.js:448)
at Array.reduce (<anonymous>)
at getRectOfNodes (zoom.js:448)
at zoom.js:448
at easy-peasy.esm.js:333
at simpleProduce (easy-peasy.esm.js:305)
at runActionReducerAtPath (easy-peasy.esm.js:332)
at reducerForActions (easy-peasy.esm.js:342)
at rootReducer (easy-peasy.esm.js:361)
at dispatch (redux.js:213)
at easy-peasy.esm.js:538
at easy-peasy.esm.js:807
at index.js:11
at Object.dispatch (easy-peasy.esm.js:890)
at actionCreator (easy-peasy.esm.js:698)
at zoom.js:448
at commitHookEffectListMount (react-dom.development.js:19731)
at commitPassiveHookEffects (react-dom.development.js:19769)
at HTMLUnknownElement.callCallback (react-dom.development.js:188)
at Object.invokeGuardedCallbackDev (react-dom.development.js:237)
at invokeGuardedCallback (react-dom.development.js:292)
at flushPassiveEffectsImpl (react-dom.development.js:22853)
at unstable_runWithPriority (scheduler.development.js:653)
at runWithPriority$1 (react-dom.development.js:11039)
at flushPassiveEffects (react-dom.development.js:22820)
at performSyncWorkOnRoot (react-dom.development.js:21737)
at react-dom.development.js:11089
at unstable_runWithPriority (scheduler.development.js:653)
at runWithPriority$1 (react-dom.development.js:11039)
at flushSyncCallbackQueueImpl (react-dom.development.js:11084)
at flushSyncCallbackQueue (react-dom.development.js:11072)
at discreteUpdates$1 (react-dom.development.js:21893)
at discreteUpdates (react-dom.development.js:806)
at dispatchDiscreteEvent (react-dom.development.js:4168)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (5 by maintainers)
Commits related to this issue
- fix(userselection): dont unset selection on startup #515 — committed to xyflow/xyflow by moklick 4 years ago
- fix(userselection): dont unset selection on startup #515 — committed to xyflow/xyflow by moklick 4 years ago
Seems like this is fixed now. I will continue testing to make sure. Thanks so much for getting this out quickly. I really appreciate it.