Saigesp / vue-d3-charts

D3 charts for Vue
https://saigesp.github.io/vue-d3-charts/
GNU Lesser General Public License v2.1
97 stars 30 forks source link

Module parse failed: Unexpected token (690:20) #17

Open waldekgraban opened 4 years ago

waldekgraban commented 4 years ago

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?

Welfordian commented 4 years ago

Looks like I'm also having the same issue.

Any fixes?

Saigesp commented 3 years ago

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