Skip to content

Errors with Svelte 5 #8

Closed
Closed
@Donny-H

Description

@Donny-H

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions