Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

How do I test an ember component that extends from another ember component?

$
0
0

@xwingz wrote:

I have an ember component that extends from another ember component. When I try to test the extended component I get an error saying "TypeError: Cannot read property 'extend' of undefined".

e.g.

components/basic-component
export default Ember.Component.extend({
// stuff
});

components/extended-component
import BasicComponent from './basic-component';
export default BasicComponent.extend({
// stuff
});

When I try to ExtendedComponent, I get "TypeError: Cannot read property 'extend' of undefined".

I am using ember 1.8.1, and ember-qunit 0.1.8.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles