vue-d3-charts icon indicating copy to clipboard operation
vue-d3-charts copied to clipboard

Module parse failed: Unexpected token (690:20)

Open waldekgraban opened this issue 4 years ago • 2 comments

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?

waldekgraban avatar Apr 09 '20 09:04 waldekgraban

Looks like I'm also having the same issue.

Any fixes?

Welfordian avatar Jul 21 '20 03:07 Welfordian

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

Saigesp avatar Jan 12 '21 13:01 Saigesp