Skip to content

svelte-check reports warning for unary operation with reactive store #245

@dkzlv

Description

@dkzlv

Describe the bug
svelte-check reports a warning when using unary operation with a reactive store syntax.

To Reproduce
In my case svelte-check wasn't satisfied with this line:

$: show404 = !ent && !$syncStatusStore;

I got the following error:

Warning - unrecognized UnaryExpression operator 53! 
                This is an edge case unaccounted for in svelte2tsx, please file an issue:
                https://github.com/sveltejs/language-tools/issues/new/choose
                 !$syncStatusStore

Expected behavior
No error or warning.

System (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions