-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
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
how to use in svelte5? #113
Comments
The library is not yet tested in svelte v5. Looks like they introduced a breaking change in v5. Please go ahead and propose an ideally backwards compatible fix if you're free. |
I tried to change a "new component" to use Svelte 5 Mount command , but I failed. There are a lot of changes. I'm thinking of leaving svelte... |
From https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes :
In other words add a export default {
compilerOptions: {
legacy: { componentApi: true }
}
} This makes it backwards compatible. |
after legacy setting |
change bind function source
i think ctx object missing on mount function |
edit source same. svelte.config.js
|
Cool thanks! I'll wait to cutting a new release until Svelte v5 is released. Hopefully there's a backward compatible way to support Svelte v4 and v5. |
https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
App.svelte
Popup.svelte
The text was updated successfully, but these errors were encountered: