Uncaught Error: Unable to find node on an unmounted component. [After update to react 18]
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, react
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- JavaScript
- スター
- 9.3k
- フォーク
- 1k
- 平均マージ
- 2時間 35分
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-grid-layout/react-draggable のほかの issue
-
bug ready-for-agent
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
react-grid-layout/react-draggable#822 · コメント 2 件 ·
-
bug needs-info
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
react-grid-layout/react-draggable#782 · コメント 2 件 ·
-
bug needs-info
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
react-grid-layout/react-draggable#772 · コメント 1 件 ·
-
error in react 19オープンbug ready-for-agent
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
react-grid-layout/react-draggable#771 · コメント 14 件 · リアクション 31 件 ·
-
enhancement ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
react-grid-layout/react-draggable#762 · コメント 1 件 ·
react-grid-layout/react-draggable の issue をすべて見る
似ている issue
-
[Feature]:オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
automated issue report
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lirantal/discoprint#36 ·
メンテナーはふだん 1 日以内に返信
-
accepting PR Content:HTML
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
mdn/content#45988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
txn2/mcp-data-platform#2030 ·
メンテナーはふだん 1 日以内に返信