When running plone-compile-resources script, found this error as below:
Running "uglify:plomino" (uglify) task
{ SyntaxError: Unexpected token: punc (()
at JS_Parse_Error.get (eval at <anonymous> (/Users/ivan/code/work/Plomino/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:79:23)
at formatError (util.js:644:15)
at formatValue (util.js:550:18)
at inspect (util.js:183:10)
at exports.format (util.js:69:24)
at Console.log (console.js:43:37)
at /Users/ivan/code/work/Plomino/node_modules/grunt-contrib-uglify/tasks/uglify.js:144:17
at Array.forEach (native)
at Object.<anonymous> (/Users/ivan/code/work/Plomino/node_modules/grunt-contrib-uglify/tasks/uglify.js:78:16)
at Object.<anonymous> (/Users/ivan/code/work/Plomino/node_modules/grunt/lib/grunt/task.js:264:15)
message: 'Unexpected token: punc (()',
filename: 'plominodatagrid-compiled.js',
line: 23,
col: 16,
pos: 822 }
>> Uglifying source /Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominoformula-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominotable-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominodynamic-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominodatagrid-compiled.js failed.
Warning: Uglification failed.
Unexpected token: punc (().
Line 23 in /Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominoformula-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominotable-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominodynamic-compiled.js,/Users/ivan/code/work/Plomino/src/Products/CMFPlomino/browser/static/js/plominodatagrid-compiled.js
Use --force to continue.
Aborted due to warnings.
When running
plone-compile-resources
script, found this error as below: