Open pratham15541 opened 1 year ago
hi :wave: thanks for reporting this issue!
I pulled the code and started the app, but wasn't sure exactly how the error should be trigger.
Can you list the steps you take to reproduce this issue?
if you run it locally and install app and start dev server
then it shows the four routes like /docs , /playground, in navbar
when i switch to /playground it boots webcontainer successfully and on change page to other url i am calling function for teardown webcontainer
and when user gets back again /playground then it shows error webcontainer already booted!
@kirjavascript no reply since 2 days
Thanks for the reproduction notes, We've been trying to debug this issue but haven't got to the bottom of it yet.
Once the issue if figured out we will post an update here!
any updates @kirjavascript ?
Describe the bug
GITHUB LINK: https://github.com/pratham15541/webcontainer-trial-react
i am trying to teardown webcontainer and once again boot in react app but it shows error: /docs Webcontainer.jsx:98 null Webcontainer.jsx:59 Booting WebContainer... Webcontainer.jsx:75 WebContainer booted successfully! /docs Webcontainer.jsx:98 {"_instance":{},"_runtimeInfo":{"path":"/bin:/usr/bin:/usr/local/bin","cwd":"/home/httplocalhost5173-b5wu"},"_iframe":{},"fs":{"_fs":{}}} Webcontainer.jsx:101 Stopping WebContainer... Webcontainer.jsx:104 WebContainer stopped Webcontainer.jsx:59 Booting WebContainer... Webcontainer.jsx:93
Error booting WebContainer: Error: WebContainer already booted at WebContainer.boot (index.js:140:19) at initializeComponents (Webcontainer.jsx:60:47) at Webcontainer.jsx:150:7
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/pratham15541/webcontainer-trial-react
Steps to reproduce
code:
Expected behavior
i think it should destroy and again start new webcontainer Instance..
Parity with Local
Screenshots
No response
Platform
Additional context
No response