plotly / plotly/react-plotly.js
Uncaught TypeError: Cannot read property 'match' of null when clicking any options in the ModeBar
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 138
- 平均合併
- 3 天 2 小時
- 30 天內合併 PR
- 4
描述
"plotly.js": "^1.55.2"
"react": "^16.13.1"
"react-plotly.js": ^"2.5.0"
I am using react-plotly.js for our project.
I haven't modified much on this ModeBar (image below)

Added only two configs to the ModeBar
config={{
displayModeBar: true,
toImageButtonOptions: {
filename: "something",
},
}}
It doesn't always happen but time to time, by clicking one of the options from the ModeBar, it still does the job without crashing the app but in console, it prints the following errors.

Right after I created this issue, just refreshed the app and went over exact same steps but no warning message this time.
I am quite new to React and this error message only comes from ModeBar buttons so I am assuming it's something to do with plotly.js library?
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從報告中的 plotly.js、react 和 react-plotly.js 版本,以及包含 displayModeBar 和 toImageButtonOptions 的 ModeBar 設定開始。透過點擊 ModeBar 選項來重現間歇性錯誤,擷取主控台堆疊追蹤,並判斷故障屬於此 React wrapper 還是 plotly.js;當責任歸屬明確且建立可靠的重現方式後,該 issue 即告解決。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- data-visualization, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100