Skip to content

Smui and Svelte 5? #701

Open
Open
@johan-timberit

Description

@johan-timberit

I am simply using Material UI components and get the same error as soon as I insert an attribute.

What am I doing wrong?

Image

Error: Type '{ children: () => any; class: string; }' is not assignable to type 'OwnProps & Omit<HTMLDivAttributes, keyof OwnProps> & SmuiEventProps<HTMLDivElement> & DataAttrs & { ...; }'. Type '{ children: () => any; class: string; }' is not assignable to type '{ [x: string]: false | Attachment<HTMLDivElement> | null | undefined; [x: innerGrid$data-${string}]: any; innerGrid$use?: ActionArray | undefined; innerGrid$class?: string | undefined; ... 565 more ...; innerGrid$onSMUITopAppBarNavcapture?: EventHandler<...> | ... 1 more ... | undefined; }'. Property '"class"' is incompatible with index signature. Type 'string' is not assignable to type 'false | Attachment<HTMLDivElement> | null | undefined'. (ts) {#if EnumItems != undefined && PropertyFilters != undefined } <LayoutGrid class="noPadding"> {#each PropertyFilters as e (e.PropertyCode) }

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