You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When telling bolt to run npx shadcn add "https://v0.dev/chat/b/<id>", it will fail with this error: request to [https://v0.dev/chat/b/](https://t.co/TE5EKUYAZF)<id>/json failed, reason: socket hang up
Ah, I think this is because it's running into a CORS issue. It would work if https://v0.dev/chat/b/<id> was served with Access-Control-Allow-Origin set to * or if returned the origin which sent the request, returning something like https://<unique>.w-credentialless-staticblitz.com/.
We do have a CORS proxy though on StackBlitz, but I believe it hasn't been ported over the WebContainer API yet.
GQAdonis
pushed a commit
to tribe-health/bolt.new-extended
that referenced
this issue
Nov 10, 2024
Describe the bug
When telling bolt to run
npx shadcn add "https://v0.dev/chat/b/<id>"
, it will fail with this error:request to [https://v0.dev/chat/b/](https://t.co/TE5EKUYAZF)<id>/json failed, reason: socket hang up
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-esspt2
Steps to reproduce
npx shadcn add "https://v0.dev/chat/b/<id>"
"Expected behavior
I can just install any blocks from v0.
Screen Recording / Screenshot
No response
Platform
Additional context
https://x.com/stackblitz/status/1842336979939422604
The text was updated successfully, but these errors were encountered: