Hey there,
I was wondering if anyone could point me in the right direction.
I’m building my assets and they compile fine with
yarn run build
However, when I compile with build:production, I receive the following error
yarn run build:production
yarn run v1.5.1
$ webpack --progress -p --config resources/assets/build/webpack.config.js
94% asset optimization
ERROR Failed to compile with 1 errors 18:32:54
error
scripts/main_6cab658f.js from UglifyJs
Unexpected token: operator (>) [scripts/main_6cab658f.js:12786,272]
27 assets
error An unexpected error occurred: "Command failed.
Exit code: 2
Command: sh
Arguments: -c webpack --progress -p --config resources/assets/build/webpack.config.js
Directory: /var/www/fliteboard/wp-content/themes/fliteboard
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/fliteboard/wp-content/themes/fliteboard/yarn-error.log".
I’ve attached my yarn-error.log file
Any ideas would be much appreciated!