Skip to content

Object literal may only specify known properties, and 'disabled' does not exist in type '$$ComponentProps' #708

@rsmarples

Description

@rsmarples

After upgrading to svelte-5 and smui-8, svelte-check complains about the error in the title for all components which could be disabled - such as Button.
SMUI buttons are still disabled and enabled fine at runtime, this is purely a compile time check issue.

$ npm list | grep 'smui\|svelte-check'
├── @smui/button@8.0.3
├── @smui/card@8.0.3
├── @smui/checkbox@8.0.3
├── @smui/chips@8.0.3
├── @smui/circular-progress@8.0.3
├── @smui/common@8.0.3
├── @smui/data-table@8.0.3
├── @smui/dialog@8.0.3
├── @smui/drawer@8.0.3
├── @smui/fab@8.0.3
├── @smui/floating-label@8.0.3
├── @smui/form-field@8.0.3
├── @smui/icon-button@8.0.3
├── @smui/linear-progress@8.0.3
├── @smui/menu@8.0.3
├── @smui/notched-outline@8.0.3
├── @smui/paper@8.0.3
├── @smui/select@8.0.3
├── @smui/snackbar@8.0.3
├── @smui/switch@8.0.3
├── @smui/textfield@8.0.3
├── @smui/tooltip@8.0.3
├── @smui/touch-target@8.0.3
├── smui-theme@8.0.3
├── svelte-check@4.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions