neuronetio / gantt-elastic

Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]

Home Page:https://neuronet.io/gantt-elastic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax Error: Unexpected token (592:10)

Sharvadze opened this issue · comments

Couldn't get complied version of GanttElastic to work. I'm using an old webpack and there is no way I can update it because of dependencies

This is my error stack:

error in ./~/gantt-elastic/src/GanttElastic.vue

Syntax Error: Unexpected token (592:10)

590 | for (let [index, task] of tasks.entries()) {
591 | tasks[index] = {

592 | ...task,
| ^
593 | id: task[options.taskMapping.id],
594 | start: task[options.taskMapping.start],
595 | label: task[options.taskMapping.label],

@ ./~/gantt-elastic/src/GanttElastic.vue 7:2-169
@

.//babel-loader/lib?{"cacheDirectory":true,"presets":[["es2015",{"modules":false}]]}!.//vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/web/dashboard/project/StageFiveComponent.vue

hmmm, maybe experimenting with some babel presets will help because es2015 may be not enough here.
Try es2018 if you can.