Skip to content

$bindable() can only be used inside a $props() declaration #1750

@domoritz

Description

@domoritz

Describe the bug

I'm getting this error inside the Alert.

error during build:
[vite-plugin-svelte:compile] [plugin vite-plugin-svelte:compile] ../node_modules/flowbite-svelte/dist/alert/Alert.svelte (17:51): /Users/dominik/Developer/PACKAGE/node_modules/flowbite-svelte/dist/alert/Alert.svelte:17:51 `$bindable()` can only be used inside a `$props()` declaration
https://svelte.dev/e/bindable_invalid_location

Reproduction

It's internal code for now, unfortunately.

Version and System Info

svelte 5.38.6, vite 7.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Need detailed version and system infoOutput of `npx envinfo --system --npmPackages svelte,@sveltejs/kit,flowbite-svelte,vite--binaries`needs reproductionIssue needs a minimal code example to reproduce the reported problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions