Skip to content

svelte-material-ui is incompatible with svelte@^5.29.0 #695

Open
@samausir

Description

@samausir

Describe the bug
Running svelte-check on <Textfield bind:value /> fails with the following error:

Property 'value' is incompatible with index signature.
   Type 'string' is not assignable to type '((false | Attachment<HTMLSpanElement>) & (false | Attachment<HTMLLabelElement>)) | null | undefined'. (ts)
	<Textfield bind:value={searchTerm} input$id={searchInputId} input$placeholder="Filter..." class="search-input">

To Reproduce
Steps to reproduce the behavior:

  1. Create a new SvelteKit application
  2. Use Textfield in a page (other components have this problem as well, such as TabBar) and pass value (also happens with required, disabled etc.)
  3. Run npm run check and see the error.

CodeSandbox

Expected behavior
Using value on Textfield should not produce type errors.

Additional context
This seems to be caused by the new Attachments feature.

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