[Assetic\Exception\FilterException]
An error occurred while running:
'/usr/bin/nodejs' '/usr/local/bin/uglifycss' '/tmp/assetic_uglifycssZcQFpk'
Error Output:
/usr/local/lib/node_modules/uglifycss/uglifycss:29
const { defaultOptions, processString, processFiles } = require('./')
^
SyntaxError: Unexpected token {
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
I have this error when I try to do an assetic:dump --env=prod in my Symfony application. What can I do to solve it?
If I do the same command but without --env=prod it works.
I have this error when I try to do an assetic:dump --env=prod in my Symfony application. What can I do to solve it?
If I do the same command but without --env=prod it works.
I have installed uglify-js and uglifycss