We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@ai-sdk/svelte
beforeUpdate(...)
After updating to Svelte 5, I get this error:
Uncaught Svelte error: lifecycle_legacy_only `beforeUpdate(...)` cannot be used in runes mode
In the log it points to this code somewhere in @ai-sdk/svelte
<script lang="ts"> import { useCompletion } from "@ai-sdk/svelte"; const { input, handleSubmit, completion, isLoading } = useCompletion({ api: "/api/openai/format", }); let output = $derived($completion); </script>
The text was updated successfully, but these errors were encountered:
Any workaround?
Sorry, something went wrong.
Encountered the same issue after upgrading to svelte 5.
Yep this is fully broken in Svelte 5. Seems like a high priority issue to fix.
Apparently, the code comes from @ConsoleTVs/sswr which is deprecated/unmaintained.
No branches or pull requests
Description
After updating to Svelte 5, I get this error:
In the log it points to this code somewhere in
@ai-sdk/svelte
Code example
The text was updated successfully, but these errors were encountered: