Skip to content
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

Svelte 5 Warning: accessors option has been deprecated #24

Open
forna opened this issue Apr 28, 2024 · 3 comments
Open

Svelte 5 Warning: accessors option has been deprecated #24

forna opened this issue Apr 28, 2024 · 3 comments

Comments

@forna
Copy link

forna commented Apr 28, 2024

Now Svelte 5 is officially in Release Candidate stage.

[email protected] produces the following warning:
svelte-filepond/src/Component.svelte:1:16 e 'accessors' option has been deprecated. It will have no effect in runes mode

Beware the line in Component.svelte:
<svelte:options accessors />
cannot simply be deleted, removing it will cause the component to stop working and produce errors like:
getfiles is not a function

More info:
https://svelte-5-preview.vercel.app/docs/breaking-changes#breaking-changes-in-runes-mode
sveltejs/svelte#9827

@ZaxyxaZ
Copy link

ZaxyxaZ commented Oct 30, 2024

I have tested in Svelte4 compatibility mode and svelte-filepond does function as expected. But will need to get ported to Svelte5 eventually so that folks can use in native SvelteKit 5.

@YugoCode
Copy link

What's the state of porting it to Svelte 5? Would be awesome, thanks! <3

@rikschennink
Copy link
Collaborator

I've not yet looked at porting the v4 Svelte adapter, but as Svelte 5 is very similar to 4, and the adapter is just a very small wrapper for FilePond native, I don't think it's that difficult? Happy to accept PRs.

FYI FilePond v5 is going to be powered by Svelte 5 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants