Stackblitz (Cloud IDE) support #639
Replies: 6 comments 2 replies
-
Per this thread related to Astro support in Stackblitz, it looks like Stackblitz doesn't have full ESM support for NodeJS. So this may something to keep in mind when proceeding with #532 |
Beta Was this translation helpful? Give feedback.
-
OK, so after merging #663 , things are looking a bit more organized / readable (IMO) but there is still the ugly Would like to get that cleaned up ideally, though I suppose technically nothing to do with Stackblitz per se. If you want to test, you can test it out here by running |
Beta Was this translation helpful? Give feedback.
-
Found another small issue with Stackblitz when saving / forking a project, the header image in the Getting Started repo breaks - stackblitz/webcontainer-core#493 |
Beta Was this translation helpful? Give feedback.
-
So after the Will need to file an issue with them. |
Beta Was this translation helpful? Give feedback.
-
I think with the work done in the v0.26.0 release, we can officially close this out. Now that Puppeteer is a plugin, I've documented the caveat there but otherwise WCC has no issues running on Stackblitz. 🥳 |
Beta Was this translation helpful? Give feedback.
-
Just a heads up that as of the v0.28.0 release, which made Node 18 the minimum version, Greenwood does not work with Stackblitz anymore since Stackblitz only currently supports Node Added a comment to a tracking issue on their end - stackblitz/webcontainer-core#560 (comment) |
Beta Was this translation helpful? Give feedback.
-
Overview
In the spirit of #626 / #576 and with the recently announced, and very exciting news of Web Containers, I thought I would give running Greenwood in Stackblitz and well, it's working pretty well already!
Was able to get greenwood-getting-started working!

And was able to start a new repo and commit to it from Stackblitz, all done entirely between stackblitz and github! 😮
Known Issues
Noticing a couple things, some related to Greenwood and some related to Stackblitz
Puppeteer / Prerendering
When Stackblitz runs

npm install
it shows an error about not being able to install some post install scripts for puppeteer, so for now you have to setprerender: false
in greenwood.config.jsLive Reload (Resolved *)
Couldn't get it to work reliably so something to keep an eye out for.

Seems to be working ok now, added a bunch of these characters in a row and it kept refreshing
Package.json is required
When loading a project via the Stackblitz GitHub URL, a package.json will be prompted for / required.

This can easily be done by just making a simple one in GitHub first, then do all the install commands from Stackblitz.. Maybe a feature request for them to run
npm init
in the absence of a package.json? 🥺 🙏Double Commits (Not Greenwood related)
When stackblitz commits, it commits twice in pairs.
Beta Was this translation helpful? Give feedback.
All reactions