Skip to content

Error compiling component when <option> without value attribute contains <slot />Β #2723

@trbrc

Description

@trbrc

A component with an <option> tag that has no value attribute and contains another tag, such as <slot />, will refuse to compile with a vague error:

/* Error compiling component

undefined is not an object (evaluating 'this.node.start')

*/

Reproduction: https://svelte.dev/repl/676c6c2d7a8a4684a261935c488b763a?version=3.20.1

Changing it to <option value><slot/></option> is enough to make it work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions