Jòan
banner
nemikolh.bsky.social
Jòan
@nemikolh.bsky.social
Working on WebContainers at @stackblitz • 2ndLook - https://2ndlook.apero-games.com/ • Father of two

Married to @kurouba.bsky.social • https://kurouba.art
Oh interesting, it seems to work for me here.

Out of curiousity, do you also get that issue when typing in the terminal at xtermjs.org?
February 19, 2025 at 10:30 AM
If it doesn't work then this is an infra issue. If it works with curl then it's a chrome configuration issue.
February 9, 2025 at 5:13 PM
It helps a lot! So the main error you have that's preventing previews from working is this one:

TypeError: Failed to register a ServiceWorker

Can you maybe try to curl the script directly?

qg3jx5gm6dk3domip238da2dzi8kiw-cbhg--3000--d20a0a75.local-corp.webcontainer-api.io/.localservic...
February 9, 2025 at 5:12 PM
I might be able to help!

@sj-ra.bsky.social Could you share any error are you seeing? Do you perhaps see an error in the network tab or the console of the Chrome devtools?
February 6, 2025 at 5:05 PM
I totally agree with you.

It might be possible to tweak the system prompt so that in those cases, it explains what it does.

Actually, we should be able to verify whether that would work or not. If you ask it what services / domains it configured, does it tell you?
November 25, 2024 at 8:32 PM
We definitely take suggestions!! 🙌 And good question!

I'm not quite sure to be honest. What would you expect it to tell you? Like guide you how to configure subdomains on a domain registrar?
November 25, 2024 at 8:24 PM
If you didn't previously deployed this application with bolt, I think it won't work. However, @samverschueren.bsky.social think we could easily make it work.
November 22, 2024 at 3:12 PM
If you previously deployed this application with bolt, then yes it will work!! 🙌
November 22, 2024 at 3:07 PM
It will work!

We tested it live yesterday during Bolt Office Hours! You have to make sure you've connected your account in Settings > Applications.

youtu.be/6Xyo-154X6s?...
Bolt Office Hours: Week 5
YouTube video by StackBlitz
youtu.be
November 21, 2024 at 11:34 AM
Oh, that first screenshot hinted me at the issue!

TanStack docs have a bug with their link to stackblitz because the URL includes the `embed=1` query parameter which is only intended to be used in embeds.

Remove it and it should work 😃

(tbf, I think we can and should fix that on our side)
November 13, 2024 at 4:53 PM
Hey @andri.dk! It should work, I'm on Ubuntu and use StackBlitz (& WebContainers) on Firefox.

Could you be using Firefox in private mode? Or maybe have cookies set as Custom? This sometimes prevent the service worker from being installed.

See developer.stackblitz.com/platform/web...
November 12, 2024 at 7:58 PM