Uncaught TypeError: Cannot read property 'unstable_cancelCallback' of undefined
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
I am having an issue with an exception every time I load a react page and have chrome developer tools open. Would anyone have any suggestions?
I am injecting react and react-dom using webpack, and the versions used are
Uncaught TypeError: Cannot read property 'unstable_cancelCallback' of undefined
at react-dom.production.min.js:192
at react-dom.production.min.js:12
at Object.<anonymous> (react-dom.production.min.js:12)
at u (bootstrap bb4ee82…:1370)
at o (bootstrap bb4ee82…:772)
at Object.<anonymous> (vendor.min.js:99413)
at u (bootstrap bb4ee82…:1370)
at bootstrap bb4ee82…:1422
at bootstrap bb4ee82…:1422
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-hot-loader": "^4.3.11",
webpack:///./node_modules/react-dom/umd/react-dom.production.min.js
Ec=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,ag=Ec.unstable_cancelCallback,Nd=Ec.unstable_now,Bh=Ec.unstable_scheduleCallback,Fh=Ec.unstable_shouldYield,Qd=null,Rd=null,Dh="function"===typeof setTimeout?setTimeout:void 0,lg="function"===typeof clearTimeout?clearTimeout:void 0;new Set;var pd=[],Pa=-1,oa={},E={current:oa},O={current:!1},wa=oa,rd=null,sd=null,T=function(a,b,c,d){return new nh(a,b,c,d)}
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從 react-dom.production.min.js 的堆疊追蹤以及列出的 React、React DOM 和 react-hot-loader 版本開始,接著檢查 webpack 如何注入這些套件。在開啟 Chrome Developer Tools 的情況下重現此例外,並判斷相依性組合是否造成缺少 Scheduler 方法。在該設定下頁面載入時不再出現此未捕獲的 TypeError,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react, webpack
- 領域
- frontend, web-dev
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100