ember-cli-d3
ember-cli-d3 copied to clipboard
Ember 2.6 - Uncaught TypeError: Cannot read property 'template' of undefined
Hey,
I recently updated Ember to 2.6 and there is some compatibility issue. Charts throw an exception during rendering:
Uncaught TypeError: Cannot read property 'template' of undefined
It seems that something ember-cli-d3 use was removed in Ember 2.6. I was trying to find the cause but with no luck :(
Hi @netes, sorry I don't have much time to investigate this. I would be glad to accept a PR for this.
Same here... Will try to find out what is wrong
I was not able to reproduce this.

Thanks for reply. I'll try to investigate the issue, maybe it's related to some particular chart parameter or something.
@netes which version of jQuery do you use? I'm using jQuery 2.1.4, in @ming-codes example it is jQuery 1.11.3
I was able to solve it. I had a component that mixes in GraphicSupport and that had no corresponding handlebars file (it worked like this before Ember update). After I created an empty template for that component, it started to work with Ember 2.6.
@snovity jQuery 2.2.4, but your solution works like a charm. Still - it's weird that we need empty templates for components. I'm wondering where the real reason of this "bug" is.
@netes yeah, empty templates should be autogenerated, looks like Ember 2.6 + jQuery 2.x are causing this somehow