We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d9c1d commit 5a370cbCopy full SHA for 5a370cb
src/lib/client/adapters/webcontainer/index.js
@@ -55,7 +55,17 @@ export async function create(stubs) {
55
// at Object.rm (webcontainer.e2e246a845f9e80283581d6b944116e399af6950.js:6:121171)
56
// at MessagePort._0x4ec3f4 (webcontainer.e2e246a845f9e80283581d6b944116e399af6950.js:6:110957)
57
// at MessagePort.nrWrapper (headless:5:29785)
58
- await vm.fs.rm(file);
+ // await vm.fs.rm(file);
59
+
60
+ // temporary workaround
61
+ try {
62
+ await vm.run({
63
+ command: 'node',
64
+ args: ['-e', `fs.rmSync('${file.slice(1)}')`]
65
+ });
66
+ } catch (e) {
67
+ console.error(e);
68
+ }
69
}
70
71
await vm.loadFiles(convert_stubs_to_tree(stubs));
0 commit comments