ember-cli-d3 icon indicating copy to clipboard operation
ember-cli-d3 copied to clipboard

Ember 2.6 - Uncaught TypeError: Cannot read property 'template' of undefined

Open netes opened this issue 9 years ago • 8 comments

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 :(

netes avatar Jun 15 '16 09:06 netes

Hi @netes, sorry I don't have much time to investigate this. I would be glad to accept a PR for this.

ming-codes avatar Jun 17 '16 15:06 ming-codes

Same here... Will try to find out what is wrong

snovity avatar Jun 19 '16 16:06 snovity

I was not able to reproduce this. screen shot 2016-06-19 at 10 50 23 am

ming-codes avatar Jun 19 '16 17:06 ming-codes

Thanks for reply. I'll try to investigate the issue, maybe it's related to some particular chart parameter or something.

netes avatar Jun 19 '16 18:06 netes

@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

snovity avatar Jun 19 '16 20:06 snovity

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 avatar Jun 19 '16 20:06 snovity

@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 avatar Jun 20 '16 06:06 netes

@netes yeah, empty templates should be autogenerated, looks like Ember 2.6 + jQuery 2.x are causing this somehow

snovity avatar Jun 20 '16 08:06 snovity