Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
o-az opened this issue Jul 5, 2024 · 4 comments
Open
1 task done

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

o-az opened this issue Jul 5, 2024 · 4 comments

Comments

@o-az
Copy link

o-az commented Jul 5, 2024

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

  • OS: macOS and Safari iOS
  • Browser: Safari, Chromium Brave [e.g. Chrome, Safari, Firefox]

Additional context

No response

@SamVerschueren
Copy link
Contributor

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
Copy link
Author

o-az commented Jul 17, 2024

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

image

@SamVerschueren
Copy link
Contributor

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
Copy link
Author

o-az commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants