Describe the bug
This example crashes during SSR but works fine during CSR:
<script>
const user = $derived(Promise.resolve({ name: 'test', image: '' }))
</script>
<img
alt={(await user).name}
src={(await user).image}
/>
Reproduction
playground - only repros when run locally
Logs
TypeError: Cannot read properties of null (reading 'function')
at Module.push_element (node_modules/.pnpm/svelte@5.55.5/node_modules/svelte/src/internal/server/dev.js:59:25)
at eval (src/lib/playground/App.svelte:24:27)
System Info
System:
OS: Linux 6.19 Fedora Linux 43 (Forty Three)
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 39.73 GB / 62.69 GB
Container: Yes
Shell: 4.2.0 - /bin/fish
Binaries:
Node: 22.21.1 - /home/otto/.local/share/pnpm/node
npm: 10.9.4 - /home/otto/.local/share/pnpm/npm
pnpm: 10.25.0 - /home/otto/.local/share/pnpm/pnpm
bun: 1.3.9 - /home/otto/.bun/bin/bun
Browsers:
Firefox: 149.0.2
Firefox Developer Edition: 149.0.2
npmPackages:
@sveltejs/adapter-auto: ^7.0.1 => 7.0.1
@sveltejs/kit: ^2.57.0 => 2.59.0
@sveltejs/vite-plugin-svelte: ^7.0.0 => 7.0.0
svelte: 5.55.5 => 5.55.5
vite: ^8.0.7 => 8.0.10
Severity
blocking all usage of svelte
Describe the bug
This example crashes during SSR but works fine during CSR:
Reproduction
playground - only repros when run locally
Logs
System Info
System: OS: Linux 6.19 Fedora Linux 43 (Forty Three) CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor Memory: 39.73 GB / 62.69 GB Container: Yes Shell: 4.2.0 - /bin/fish Binaries: Node: 22.21.1 - /home/otto/.local/share/pnpm/node npm: 10.9.4 - /home/otto/.local/share/pnpm/npm pnpm: 10.25.0 - /home/otto/.local/share/pnpm/pnpm bun: 1.3.9 - /home/otto/.bun/bin/bun Browsers: Firefox: 149.0.2 Firefox Developer Edition: 149.0.2 npmPackages: @sveltejs/adapter-auto: ^7.0.1 => 7.0.1 @sveltejs/kit: ^2.57.0 => 2.59.0 @sveltejs/vite-plugin-svelte: ^7.0.0 => 7.0.0 svelte: 5.55.5 => 5.55.5 vite: ^8.0.7 => 8.0.10Severity
blocking all usage of svelte