"Unable to establish connection with the sandpack bundler" if inactive in the "Writing Markup with JSX" page.
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
In the page https://react.dev/learn/writing-markup-with-jsx , the first and last code editor blocks work fine, but if the original code is left unedited for about 40 seconds an "Unable to establish connection with the sandpack bundler" error is shown, and the only way to fix it is reloading the page or scrolling far away from the code editor and returning back to it.
This is how the page initially looks:
After about 40 seconds:
Note that if the code is edited in a way that there is no error, the issue doesn't occur.
I've noticed that this issue only occurs if there is an error in the code editor's code snippet but the mere existence of an error there doesn't guarantee the occurrence of the issue.
I've also noticed that using the same code snippet on other pages with code editors produces the same issue but only if I scroll away from the code editor and return back to it, so that the output of the code editor is loaded from scratch with said code snippet.
This issue occurs for me on both Edge and Chrome on windows, it also occurs on chrome for android (both in normal and incognito mode).
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用第一個或最後一個程式碼編輯器區塊,在 Writing Markup with JSX 頁面上重現該故障,並讓原始錯誤程式碼保持不變約 40 秒。也請按照 issue 中的描述,測試從編輯器捲動離開後再返回編輯器時的行為。在這些已回報的情境中,編輯器不再顯示 Sandpack bundler connection error,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation, frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100