-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 fails to hydrate svelte component in Safari 13. #11082
Comments
Is this in dev? In dev you should be using the latest browser possible as the code isn't transpiled to lower browser targets for performance (by Vite). The error is likely due to Safari not recognizing |
The bug is observed in both production build and dev. I'm trying to use astro for a website that I'm working on which is displayed in WKWebview of an iOS project. The minimum support version of this iOS project is iOS 13 which uses Safari 13. Regarding polyfills, could you redirect me to relevant documentation which would help me achieve polyfill in this case so that I can support Safari 13 as well? |
Can you reduce this down further? There's probably a specific feature that's not working on Safari, outside of Svelte. |
AFAIK Astro doesn't have an ootb way to add polyfills. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Safari 13
Describe the Bug
The "Example" svelte component is hydrated successfully for safari 14 and above but fails to hydrate for safari 13. It throws the following error in console.
What's the expected result?
The "Example" svelte component should be hydrated successfully for safari 13.
Link to Minimal Reproducible Example
https://github.com/Darshan-H-E/astro-safari-13-bug
Participation
The text was updated successfully, but these errors were encountered: