Skip to content

Svelte 5: misleading error message #11017

@7nik

Description

@7nik

Describe the bug

The error says The $effect rune is only available inside .svelte and .svelte.js/ts files though the file ends with .svelte.js, but the true error is $effect.active is used but not called.

Reproduction

REPL

Logs

No response

System Info

Svelte v5.0.0-next.90

Severity

annoyance

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