Anyone playing with @astro 5.14 and async rendering for @sveltejs? I'm trying to do what I thought would be a basic thing, grabbing an entry from my content collection (`await getEntry(‘collection’, 'item’)`) in my script tag, but I'm getting `Cannot await outside a <svelte:boundary> with a pending snippet` as an error, and the error URL 404s.

@snugug @astro @sveltejs can you clarify what you mean by „in my script tag“?

async Svelte in Astro works pretty well so far. I’ve tested these constellations and for islands I wrote some lines here: https://fubits.dev/notes/svelte-5-patterns-async-remote/#updates

@fubits @astro @sveltejs I'm doing something like:

<script>
import {getEntry} from 'astro:content';

const item = await getEntry('collection', 'item');

</script>

Server render only, want to use item throughout the component. Syntax may be off, on phone.

@snugug @astro @sveltejs just to confirm - you are doing that in a *.astro file, right?

And if yes - where is the async Svelte component being imported?

@fubits @astro @sveltejs No, I'm doing it in a Svelte file, trying to use the new async Svelte rendering to grab the content
@fubits @astro @sveltejs It should be functionally identical to the included example in the 5.14 release notes (https://astro.build/blog/astro-5140/#async-rendering-support-for-svelte) and the Svelte 5 docs explicitly call out top-level `await` inside a component's <script> tag (https://svelte.dev/docs/svelte/await-expressions). I've got my `svelte.config.js` file set up correctly, but getting the error I shared (I know it's set up right because before I was getting top-level await not allowed without async rendering enabled)
Astro 5.14 | Astro

Astro 5.14 has a bumper harvest of features and DX improvements to warm the cockles of your heart, with new routing tools, async Svelte rendering, React 19 actions support, and more!

Astro