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

Errors with Svelte 5 #8

Closed
Donny-H opened this issue Oct 27, 2024 · 5 comments
Closed

Errors with Svelte 5 #8

Donny-H opened this issue Oct 27, 2024 · 5 comments

Comments

@Donny-H
Copy link

Donny-H commented Oct 27, 2024

I am not sure if this is a problem with Svelte 5 (with sveltekit) specifically, but wx-svelte-core does not work with Svelte 5.

In the editor when importing, you get a "Cannot find module 'wx-svelte-core' or its corresponding type declarations." error.

And if you attempt to run the app anyway, you get the following console errors:

10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/Button.svelte:12:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/Icon.svelte:5:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/RichSelect.svelte:13:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/TwoState.svelte:23:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/TwoState.svelte:23:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals) (x2)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/themes/Material.svelte:6:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/themes/Willow.svelte:6:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/themes/WillowDark.svelte:6:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/Button.svelte:12:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)
10:59:37 am [vite] Pre-transform error: node_modules/wx-svelte-core/src/components/Button.svelte:12:23 Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals) (x2)
@sven4all
Copy link

I do have the same problem with Svelte 5, just discovered this library and it looks really promissing.

@sbscan
Copy link

sbscan commented Oct 31, 2024

I've tried to solve the problem one by one but quit after some hours.
Like this library but live Svelte 5 more :)

@mkozhukh
Copy link
Contributor

mkozhukh commented Nov 8, 2024

We are aware about the limitation ( Svelte 5 compatiblity )
Unfortunately it is a bit more complicated, as changes are not limited to the slots syntax
The good news we are working on update, and till the end of November we plan to release Svelte 5 compatible versions of all our widgets

@mkozhukh
Copy link
Contributor

We have just published [email protected], which is compatible with Svelte 5.x.
The final version and updated documentation will be available in the next few days.

Beta versions of all other widgets were released as well.

@Zwillinge
Copy link

Zwillinge commented Jan 15, 2025

Starting from version v2.0.1 (released in the end of December 2024) svelte-core widgets can be used with Svelte5 and SvelteKit

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

5 participants