Closed oldmanwerther closed 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?
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.
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?
Ok, I'll keep looking, thanks!
@oldmanwerther any update?
I hope I can close this issue.
@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.