plotly / plotly/plotly.js

Webpack v5 compatibility issue (with workaround)

未關閉
#6,014 9 則留言 5 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug infrastructure P2
主要語言
JavaScript
星號
18.3k
分支
2k
平均合併
2 天 12 小時
30 天內合併 PR
28

描述

With Webpack v5 I failed to run plotly.js, it requires additional stream and assert libs. The complete problem description is available here https://github.com/quasarframework/quasar/issues/11229

As I was pointed Webpack v5 removed the Nodejs polyfills for the web client builds. It seems that plotly.js for the web client rely on Nodejs API , and I get errors saying that some packages are missing. These probably need to be addressed by the plotly.js communty.

For users, if you just want to run your app/website (with a bit of risk), then you can manually install node-polyfill-webpack-plugin which solves the problem.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先使用 Webpack v5 重現一個 plotly.js Web 用戶端建置,並查看連結的 Quasar issue 以取得完整的錯誤詳細資訊。調查回報中缺少的 streamassert 程式庫,並將結果與 node-polyfill-webpack-plugin 這個替代方案進行比較。此 issue 未指定 repository 檔案或測試,而其期望的修正除了要解決相容性問題之外,沒有進一步定義。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, webpack
領域
build-system, data-visualization, web-dev
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。