"Unable to establish connection with the sandpack bundler" if inactive in the "Writing Markup with JSX" page.
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 11.8k
- Forks
- 7.9k
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 11
Description
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).
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire l’échec sur la page Writing Markup with JSX en utilisant le premier ou le dernier bloc de l’éditeur de code, en laissant le code d’origine erroné tel quel pendant environ 40 secondes. Testez également le comportement après vous être éloigné d’un éditeur en faisant défiler la page, puis y être revenu, comme décrit dans l’issue. Le travail est considéré comme terminé lorsque l’éditeur n’affiche plus le Sandpack bundler connection error dans ces scénarios signalés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react
- Domaine
- documentation, frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100