react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

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

Open Mohamed-Dallash opened this issue 2 years ago • 0 comments
trafficstars

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

Mohamed-Dallash avatar Nov 11 '23 23:11 Mohamed-Dallash