-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Safari issue when ssr is false #12406
Comments
Given
It seems to be an old bug in SvelteKit that resurfaced, related to top-level await support on Safari. This is pretty important for us to have fixed and stable (tested) in a framework we hope to use for our products. Any idea of a likely fix soon would be much appreciated. Thanks for all the efforts. |
Create a file called import { encodeBase58Address } from "@bitauth/libauth"; The code in For more information about hooks: https://kit.svelte.dev/docs/hooks |
Thanks @MoonlightOffice , to be honest I did not try to find workarounds yet, because I think it should work by default, as it does in non-Safari browsers. Given the issue is related to top-level await, I did consider trying to wrap all interaction with I could try your workaround when there is a moment, but I do believe it would be most useful if a framework like SvelteKit makes workarounds unnecessary for users. |
I can provide some extra feedback on your suggestion @MoonlightOffice. It seems to work fine for the example repository I listed above, which is nice. However, my real project is a pretty large monorepo (turbo) and I'm accessing If I add all the same |
Wrapping |
closing as duplicate of #8529 |
Describe the bug
In a simple SvelteKit skeleton project with a single library added and where SSR is disabled, Safari fails with
Unhandled Promise Rejection: ReferenceError: Cannot access uninitialized variable.
. Other browsers tested had no issues.Reproduction
Please refer to https://github.com/cge-taal/sveltekit-safari-ssr-example and run with
npm run dev
.In
src/routes/+layout.ts
, whenexport const ssr = false
is set, Safari fails withUnhandled Promise Rejection: ReferenceError: Cannot access uninitialized variable.
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: