reactjs / reactjs/react.dev

"Unable to establish connection with the sandpack bundler" if inactive in the "Writing Markup with JSX" page.

オープン
#6,429 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
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:
image

After about 40 seconds:
image

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).

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、最初または最後のコードエディターブロックを使って Writing Markup with JSX ページで失敗を再現し、元の誤ったコードを約40秒間そのままにしておきます。issue に記載されているとおり、エディターから離れるまでスクロールした後、エディターに戻った場合の動作もテストしてください。報告されたシナリオでエディターに Sandpack bundler connection error が表示されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation, frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。