Skip to content

svelte/valid-compile: $props.id is not a valid rune #674

Closed
@Serator

Description

@Serator

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.20.1

What version of eslint-plugin-svelte are you using?

3.0.0-next.18

What did you do?

Hi there. I try a new rune $props.id (doc) and get a svelte/valid-compile error.

<script lang="ts">
  let foo = $props.id();
</script>

{foo}

What did you expect to happen?

There shouldn't be any errors.

What actually happened?

I get an error that the $props.id rune doesn't exist.

Link to GitHub Repo with Minimal Reproducible Example

Playground link

Additional comments

ESlint Online Playground link - there's no error here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions