Open
Description
Describe the bug
Safari throws an Exception in this line for me.
Reference Error: Cannot access uninitialized variable
svelte-kit version 1.0.0-next.561 renders the +error.svelte normally
Reproduction
Repository with minimal example: https://github.com/RSWilli/sveltekit-bug-repro
- SSR needs to be turned off
- a svelte module needs to import a module that uses top-level-await to initialize an exported variable
Logs
No response
System Info
I'm running two machines currently, the dev process is this linux machine:
System:
OS: Linux 5.15 Arch Linux
CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
Memory: 20.14 GB / 31.22 GB
Container: Yes
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.3.0 - ~/.nvm/versions/node/v18.3.0/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v18.3.0/bin/npm
Browsers:
Chromium: 107.0.5304.110
Firefox: 107.0
npmPackages:
@sveltejs/adapter-static: ^1.0.0-next.21 => 1.0.0-next.48
@sveltejs/kit: ^1.0.0-next.417 => 1.0.0-next.561
svelte: ^3.53.1 => 3.53.1
typescript: ^4.9.3 => 4.9.3
and the test machine that has the error is a MacBook without nodeJS:
macOS 12.5.1
Safari 15.6.1
Severity
blocking all usage of SvelteKit
Additional Information
maybe this is a svelte/vite error instead of kit?