-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
When I use the following code directly in application.hbs it works:
//application.hbs
{{#let (element 'h1') as |Tag|}}
<Tag class="my-tag">Test</Tag>
{{/let}}Scenario with error:
This component comes from an addon
//heading.hbs
{{#let (element 'h1') as |Tag|}}
<Tag class="my-tag">{{yield}}</Tag>
{{/let}}// application.hbs
<Heading>Test</Heading>throws the following error:
Uncaught (in promise) Error: Assertion Failed: The `element` helper polyfill encountered an unexpected error. Please report the issue at http://github.com/tildeio/ember-element-helper with the usage and conditions that caused this error.
Ember 3
deprecateMutationsInTrackingTransaction validator.js:180
Ember 2
cache manager.js:949
tag reference.js:161
track validator.js:820
valueForRef reference.js:160
<anonymous> runtime.js:2479
evaluate runtime.js:1284
evaluateSyscall runtime.js:5179
evaluateInner runtime.js:5135
evaluateOuter runtime.js:5127
next runtime.js:6259
_execute runtime.js:6243
execute runtime.js:6213
sync runtime.js:6316
runInTrackingTransaction validator.js:154
sync runtime.js:6316
Ember 3
inTransaction runtime.js:5021
Ember 5
invoke backburner.js:340
flush backburner.js:229
flush backburner.js:426
_end backburner.js:960
_boundAutorunEnd backburner.js:629
promise callback*buildNext/< backburner.js:28
flush Ember
_scheduleAutorun backburner.js:1179
_end backburner.js:970
_boundAutorunEnd backburner.js:629
promise callback*buildNext/< backburner.js:28
flush Ember
_scheduleAutorun backburner.js:1179
_end backburner.js:970
_boundAutorunEnd backburner.js:629
promise callback*buildNext/< backburner.js:28
flush Ember
_scheduleAutorun backburner.js:1179
_ensureInstance backburner.js:1167
schedule backburner.js:776
<anonymous> Ember
fulfill rsvp.js:428
resolve$1 rsvp.js:403
initializePromise rsvp.js:526
Ember 2
initializePromise rsvp.js:520
Promise rsvp.js:1021
Ember 5
invokeCallback rsvp.js:493
publish rsvp.js:476
<anonymous> Ember
invoke backburner.js:338
flush backburner.js:229
flush backburner.js:426
_end backburner.js:960
_boundAutorunEnd backburner.js:629
promise callback*buildNext/< backburner.js:28
flush Ember
_scheduleAutorun backburner.js:1179
_ensureInstance backburner.js:1167
index.js:172
What do I miss here?
Metadata
Metadata
Assignees
Labels
No labels