emberjs/ember.js

Unreachable code "reached" when trying to render a non-string with the component helper

Open

#18.072 geöffnet am 4. Juni 2019

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (4.216 Forks)batch import
BugGood for New ContributorsHas ReproductionHelp Wanted

Repository-Metriken

Stars
 (22.437 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 14h) (20 gemergte PRs in 30 T)

Beschreibung

Ember Twiddle

Ember Twiddle doesn't let me go above 3.4, but I'm reproducing this on a 3.10 app (during a migration from 2.18).

This is less of a bug and more of something that could have a helpful debug assertion. Maybe something like:

You passed [Object object] to the {{component}} helper, but the component helper only accepts strings or other components.

Along with maybe a log of what that object was.

(This might not be the right repo for this, since it seems to deal with glimmervm internals)

Contributor Guide