vue-d3-charts
vue-d3-charts copied to clipboard
Module parse failed: Unexpected token (690:20)
Hi,
ERROR in ./node_modules/vue-d3-charts/dist/vue-d3-charts.esm.js
Module parse failed: Unexpected token (690:20)
You may need an appropriate loader to handle this file type.
| });
| const rects = newbars.selectAll('.chart__bar').data(d => this.cfg.values.map(v => {
| const dat = { ...d
| };
| dat[this.cfg.key] = d[this.cfg.key];
What may be the problem? How to fix it?
Looks like I'm also having the same issue.
Any fixes?
Hi @waldekgraban and @Welfordian, thanks for the report, and sorry for my late response.
It seems that the syntax it's not being recognized. Try to update babel.js or your compiler library