svelte: Svelte 5: Doesn't work on iOS 15.0
Describe the bug
I tried to render a simple “Hello” world with Svelte 5 using SvelteKit on iOS 15.0 and page is blank and get a hydration error:
I also tried using Astro to not just blame SvelteKit and still get the error:
Reproduction
Open Svelte 5 app (develop & preview) on an iPhone 6s on iOS 15 Simulator and open page
Logs
No response
System Info
iPhone 6s on iOS 15 Simulator
Severity
blocking an upgrade
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
Support is only good as of very recently so I would be in favor of avoiding this method in the runtime (or apply a polyfill ourselves). I’m wondering how we can avoid these kinds of accidental breakages in general. In the meantime, you can polyfill it something like this.
Yeah, as mentioned, we think it does make sense for the Svelte runtime to avoid using
Array.prototype.at. The polyfill on your end should only need to be temporary.