Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Conduitry opened this issue Apr 25, 2017 · 1 comment
Closed

Comments

@Conduitry
Copy link
Member

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.

@Rich-Harris
Copy link
Member

fixed in 1.18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants