diff --git a/documentation/docs/98-reference/.generated/server-errors.md b/documentation/docs/98-reference/.generated/server-errors.md index 037a3dafd9..f87c12c54f 100644 --- a/documentation/docs/98-reference/.generated/server-errors.md +++ b/documentation/docs/98-reference/.generated/server-errors.md @@ -6,7 +6,7 @@ Encountered asynchronous work while rendering synchronously. ``` -You (or the framework you're using) used `render` with an async component. Either use `renderAsync` or wrap the async component in a `svelte:boundary` with a `pending` snippet. +You (or the framework you're using) called [`render(...)`](svelte-server#render) with a component containing an `await` expression. Either use `renderAsync(...)` or wrap the `await` (or the component containing it) in a [``](svelte-boundary) with a `pending` snippet. ### experimental_async_ssr @@ -14,7 +14,7 @@ You (or the framework you're using) used `render` with an async component. Eithe Attempted to use `renderAsync` without `experimental.async` enabled ``` -Set `experimental.async: true` in your compiler options to use async server rendering. +Set `experimental.async: true` in your compiler options (usually in `svelte.config.js`) to use async server rendering. ### lifecycle_function_unavailable diff --git a/packages/svelte/messages/server-errors/async.md b/packages/svelte/messages/server-errors/async.md index 69f381f480..55e81176f7 100644 --- a/packages/svelte/messages/server-errors/async.md +++ b/packages/svelte/messages/server-errors/async.md @@ -2,10 +2,10 @@ > Encountered asynchronous work while rendering synchronously. -You (or the framework you're using) used `render` with an async component. Either use `renderAsync` or wrap the async component in a `svelte:boundary` with a `pending` snippet. +You (or the framework you're using) called [`render(...)`](svelte-server#render) with a component containing an `await` expression. Either use `renderAsync(...)` or wrap the `await` (or the component containing it) in a [``](svelte-boundary) with a `pending` snippet. ## experimental_async_ssr > Attempted to use `renderAsync` without `experimental.async` enabled -Set `experimental.async: true` in your compiler options to use async server rendering. +Set `experimental.async: true` in your compiler options (usually in `svelte.config.js`) to use async server rendering.