Skip to content

Error: [svelte] reactive_declaration_non_reactive_property  #109

@akb5566

Description

@akb5566

Hello, I'm using [email protected]. Everything used to work fine. Today I update the package.json of my project, and now wherever the page contains date-picker-svelte, the following error will show on Chrome Dev Console.

AppDatePicker.svelte:24 [svelte] reactive_declaration_non_reactive_property
A $: statement (node_modules/​.pnpm/​[email protected][email protected]/​node_modules/​date-picker-svelte/​dist/​DateInput.svelte:61:0) read reactive state that was not visible to the compiler. Updates to this state will not cause the statement to re-run. The behaviour of this code will change if you migrate it to runes mode

image

--

I think it might be the latest [email protected] or [email protected] that cause the error. Because this error/warning did not exist before I update the packages.

The culprit might be the $: lines in DateInput.svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions