In no specific order, just things I learned while using Ember.JS
TypeError: unsupported content
at HTMLBarsMorph.Morph$setContent [as setContent] (http://localhost:4200/assets/vendor.js:56201:15)
at Object.range (http://localhost:4200/assets/vendor.js:54697:13)
at Object._htmlbarsUtilObjectUtils.merge.content (http://localhost:4200/assets/vendor.js:53624:17)This error happened in an Integration test of a component that was expecting to have a property 'visualLabel' but instead, in my test setup I created a Jvascript object thas was the following:
let option1 = Ember.Object.create({
'id': '1',
'text': 'Option1',
visualLabel: function () {
return 'Option1';
}
});Because of that visualLabel being a function, HTMLBars could not render the content (hence the "unsuported content" message). If I changed the visualLabel to be just 'visualLabel': 'Option1' everything worked just fine.