@Component
export class BarChart extends Bar {
constructor(props: any) {
super(props);
}
@Prop({ type: Object })
public chartdata!: any;
@Prop({ type: Object })
public options!: any;
public mounted() {
this.renderChart(this.chartdata, this.options);
}
}
Rendering empty canvas on the screen.
Getting runtime error: TypeError: Super expression must either be null or a function
I'm stuck in the same situation, did you solved it?
I'm stuck in the same situation, did you solved it?
Better read docs... Component should extends the Vue class though Bar class is extended via vue "extends" prop.
@Component({
extends: Bar,
})
export class BarChart extends Vue<Bar> {
}
Most helpful comment
Better read docs... Component should extends the Vue class though Bar class is extended via vue "extends" prop.