stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.86k stars 157 forks source link

astro docs edit in web publisher doesn't run #1481

Open o-az opened 3 months ago

o-az commented 3 months ago

Describe the bug

following the Web Publisher docs here: https://developer.stackblitz.com/codeflow/content-updates-with-web-publisher#edit-this-page-on-github-link

I clicked on the edit page at the bottom of this page: https://docs.astro.build/en/basics/layouts/

then I replaced github.com with pr.new which launched a Web Publisher markdown editing page. However, I couldn't get it to run as it ket failing right away and the error are half blocked by the layout:

image

here's the exact web publisher editing page where I'm facing this error:

https://stackblitz.com/~/github.com/withastro/docs/edit/main/src/content/docs/en/basics/layouts.mdx?view=preview

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/withastro/docs/edit/main/src/content/docs/en/basics/layouts.mdx?view=preview

Steps to reproduce

I clicked on the edit page at the bottom of this page: https://docs.astro.build/en/basics/layouts/

then I replaced github.com with pr.new which launched a Web Publisher markdown editing page. However, I couldn't get it to run as it ket failing right away and the error are half blocked by the layout

Expected behavior

should run and render markdown

Parity with Local

Screenshots

No response

Platform

Additional context

No response

SamVerschueren commented 3 months ago

Hey @o-az 👋 . Thanks for reaching out.

I just tried to do with you described and it seems to work for me. Can you try it again? You should also be able to scroll up the terminal to see the entire stack trace.

https://stackblitz.com/~/github.com/withastro/docs/edit/main/src/content/docs/en/basics/layouts.mdx

o-az commented 3 months ago

@SamVerschueren is it supposed to work in Safari? This is what I get when I click the link you shared

image

SamVerschueren commented 3 months ago

OOH. My bad, I didn't see it was for safari. So Safari is still pretty alpha. There's also things we just can't do because Safari doesn't implement them. One of them is having proper stack traces in scripts, which seems to be the case here. It works in Firefox and Chrome. Sorry for that.

o-az commented 3 months ago

I have no issues running any stackblitz project on Safari. It's only when running the markdown editor