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

Support for svelte 5? #25

Open
baseplate-admin opened this issue Apr 26, 2024 · 2 comments
Open

Support for svelte 5? #25

baseplate-admin opened this issue Apr 26, 2024 · 2 comments

Comments

@baseplate-admin
Copy link

baseplate-admin commented Apr 26, 2024

Hi i have a code that looks like this:

<div use:swipe on:swipe={()=>{}}></div>

It raises this error:

Using on:swipe to listen to the swipe event is is deprecated. Use the event attribute onswipe instead.

If i do this:

<div onswipe={()=>{}}></div>

It shows this error

Object literal may only specify known properties, and '"onswipe"' does not exist in type 'Omit<HTMLAttributes<HTMLDivElement>, keyof HTMLAttributes<any>> & HTMLAttributes<any>'.
@Rezi
Copy link
Owner

Rezi commented Apr 26, 2024

Hi, thank you for the report. I am aware of this issue. It is very likely to be an issue in version 5, but since it has not been officially released yet, I prefer not to modify it until it is finalized. Who knows, maybe it will be released tomorrow! Once it is officially released, I promise to address it. Until then, you'll have to manage with the deprecation warning. Let's keep the issue opened

@baseplate-admin
Copy link
Author

baseplate-admin commented May 6, 2024

Hi,

As of today, this package is no longer usable with svelte 5.

C:/Programming/coreproject-v4-ui/src/routes/anime/+page.svelte:118:3 Mixing old (on:swipe) and new syntaxes for event handling is not allowed. Use only the onswipe syntax.

image

I think it is time to move this issue.

Linked PR:

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

2 participants