K
K
Konstantin Malyarov2019-08-04 19:10:54
Vue.js
Konstantin Malyarov, 2019-08-04 19:10:54

vue-chart import error, how to fix?

import { Line } from "https://unpkg.com/vue-chartjs/dist/vue-chartjs.min.js";

export default {
    components: Line,
    mixins: [mixins.reactiveProp],
    mounted() {
        this.renderChart(this.chartData, this.options)
    }
}

Mistake.

Uncaught SyntaxError: Unexpected token {

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kokovin, 2019-08-09
@Per_Ardua

Install vue-chartjs in your project, and import it humanly)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question