vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

Unexpected token (238:11) #218

Closed oldmanwerther closed 5 months ago

oldmanwerther commented 5 months ago

@event-calendar\core\index.js: Unexpected token (238:11) ... which is return Math.max(...args);

Can't seem to get around this when importing and then compiling. Nodejs v20. Gulp 4.0. Using as an ES6 import.

vkurko commented 5 months ago

... is a rest parameters syntax which should be available in Node.js since v6.0.0. Are you sure the error is from Node.js?

oldmanwerther commented 5 months ago

here's full output:

[09:34:22] 'scripts_global' errored after 1.86 s [09:34:22] Error: Parsing file C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\@event-calendar\core\index.js: Unexpected token (238:11) at Deps.parseDeps (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\module-deps\index.js:519:15) at getDeps (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\module-deps\index.js:447:44) at C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\module-deps\index.js:430:38 at ConcatStream. (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\concat-stream\index.js:37:43) at ConcatStream.emit (node:events:530:35) at ConcatStream.emit (node:domain:551:15) at finishMaybe (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\readable-stream\lib_stream_writable.js:630:14) at endWritable (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\readable-stream\lib_stream_writable.js:638:3) at Writable.end (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\readable-stream\lib_stream_writable.js:594:22) at DuplexWrapper.onend (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\readable-stream\lib_stream_readable.js:577:10) at Object.onceWrapper (node:events:632:28) at DuplexWrapper.emit (node:events:530:35) at DuplexWrapper.emit (node:domain:551:15) at endReadableNT (C:\Users\RobertGeiger\Documents\GitHub\WRA.Umbraco\src\WRA.Umbraco.Web\node_modules\readable-stream\lib_stream_readable.js:1010:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [09:34:22] 'scripts' errored after 1.86 s [09:34:22] 'build' errored after 1.87 s

vkurko commented 5 months ago

Unfortunately, this does not add clarity. Spread syntax is available in Node.js since v5.0.0, Rest parameters syntax since v6.0.0. Perhaps your build tool uses a different version of Node.js?

oldmanwerther commented 5 months ago

Ok, I'll keep looking, thanks!

vkurko commented 5 months ago

@oldmanwerther any update?

vkurko commented 5 months ago

I hope I can close this issue.