Skip to content

Compiler throws exception when {{yield}} is preceded by an element #524

@Conduitry

Description

@Conduitry

If a {{yield}} tag is preceded by a DOM element, the compiler throws an exception here. child._state is undefined.

Attempting to compile this, for example, will trigger the exception:

<div></div>
{{yield}}

It doesn't happen with e.g. <div>{{yield}}</div>.

This wasn't happening before 1.18.0, so it's likely caused by the change to use fewer anchors.

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