Skip to content

Safari issue when ssr is false #12406

Closed as not planned
Closed as not planned
@cge-taal

Description

@cge-taal

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, when export const ssr = false is set, Safari fails with Unhandled Promise Rejection: ReferenceError: Cannot access uninitialized variable.

Logs

No response

System Info

macOS, Safari 16.6

Severity

blocking all usage of SvelteKit

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions