Uncaught Error: Unable to find node on an unmounted component. [After update to react 18]
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 28/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Reproduce the error with React 18 using the linked src/components/Draggable.jsx example, then inspect the DraggableCore lifecycle locations named in the stack trace, especially componentDidMount and componentWillUnmount. Compare the behavior with the reported Version 4.4.5 and define done as no longer throwing when the draggable component mounts and unmounts.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I don't know why it is not working anymore, my code is very simple, but after updating to react 18 stopped working:
code: https://github.com/foxhound87/mobx-react-form-devtools/blob/master/src/components/Draggable.jsx#L11
Version: 4.4.5
these errors are appearing:
Uncaught Error: Unable to find node on an unmounted component.
at findHostInstanceWithWarning (react-dom.development.js:24281:1)
at Object.findDOMNode (react-dom.development.js:24804:1)
at DraggableCore.findDOMNode (DraggableCore.js:389:1)
at DraggableCore.componentDidMount (DraggableCore.js:352:1)
at commitLayoutEffectOnFiber (react-dom.development.js:23305:1)
at commitLayoutMountEffects_complete (react-dom.development.js:24688:1)
at commitLayoutEffects_begin (react-dom.development.js:24674:1)
at commitLayoutEffects (react-dom.development.js:24612:1)
at commitRootImpl (react-dom.development.js:26823:1)
at commitRoot (react-dom.development.js:26682:1)
react-dom.development.js:18687 The above error occurred in the <DraggableCore> component:
at DraggableCore (http://localhost:8888/main.js:75147:5)
at Draggable (http://localhost:8888/main.js:74645:5)
at observerComponent (http://localhost:8888/main.js:40445:73)
at div
at div
at div
at div
at Dock (http://localhost:8888/main.js:49158:5)
at div
at observerComponent (http://localhost:8888/main.js:40445:73)
at UI
at div
at observerComponent (http://localhost:8888/main.js:169213:73)
The above error occurred in the <Draggable> component:
at Draggable (http://localhost:8888/main.js:74645:5)
at observerComponent (http://localhost:8888/main.js:40445:73)
at div
at div
at div
at div
at Dock (http://localhost:8888/main.js:49158:5)
at div
at observerComponent (http://localhost:8888/main.js:40445:73)
at UI
at div
at observerComponent (http://localhost:8888/main.js:169213:73)
react-dom.development.js:24281 Uncaught Error: Unable to find node on an unmounted component.
at findHostInstanceWithWarning (react-dom.development.js:24281:1)
at Object.findDOMNode (react-dom.development.js:24804:1)
at DraggableCore.findDOMNode (DraggableCore.js:389:1)
at DraggableCore.componentWillUnmount (DraggableCore.js:366:1)
at callComponentWillUnmountWithTimer (react-dom.development.js:22852:1)
at safelyCallComponentWillUnmount (react-dom.development.js:22873:1)
at commitDeletionEffectsOnFiber (react-dom.development.js:24129:1)
at recursivelyTraverseDeletionEffects (react-dom.development.js:23989:1)
at commitDeletionEffectsOnFiber (react-dom.development.js:24133:1)
at recursivelyTraverseDeletionEffects (react-dom.development.js:23989:1)
- Lingua principale
- JavaScript
- Stelle
- 9.3k
- Fork
- 1k
- Merge medio
- 2g 16h
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di react-grid-layout/react-draggable
-
bug ready-for-agent
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
react-grid-layout/react-draggable#822 · 2 commenti ·
-
bug needs-info
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
react-grid-layout/react-draggable#782 · 2 commenti ·
-
bug needs-info
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
react-grid-layout/react-draggable#772 · 1 commento ·
-
error in react 19Apertabug ready-for-agent
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
react-grid-layout/react-draggable#771 · 14 commenti · 31 reazioni ·
-
enhancement ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
react-grid-layout/react-draggable#762 · 1 commento ·
Tutte le issue di react-grid-layout/react-draggable
Issue simili
-
Edit: RTE News LogoApertacheck:failed logos:edit
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
iptv-org/database#36354 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
agentic-workflows documentation workflow-editor
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
githubnext/gh-aw-workshop#4139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CircuitVerse/CircuitVerse#7967 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CopilotKit/aimock#491 ·
I maintainer di solito rispondono entro 1 giorno
-
cvss-severity:high devguard l3montree-cybersecurity/.../devguard-documentation pkg:devguard/l3montree-c.../devguard-documentation risk:low state:open
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
l3montree-dev/devguard-documentation#338 · 1 commento ·