Describe the bug
In CI, on master branch front_build fail with the following error.
This error doesn't appear on dev machines (fresh clone /tmp/front/ and yarn install && yarn build:prod).
Error
ERROR in js/app.js from UglifyJs
Unexpected token: name (fn) [js/app.js:37805,6]
Child html-webpack-plugin for "index.html":
1 asset
[0] ../node_modules/html-webpack-plugin/lib/loader.js!./public/index.html 623 bytes {0} [built]
factory:21ms building:17ms = 38ms
+ 3 hidden modules
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command '/bin/sh -c printf "{}\n" > config/default.json && yarn build:prod && chmod u+x ./bin/opla ./bin/entrypoint.sh' returned a non-zero code: 1
Describe the bug In CI, on master branch front_build fail with the following error. This error doesn't appear on dev machines (fresh clone /tmp/front/ and yarn install && yarn build:prod).
Error
Link to CI https://circleci.com/gh/Opla/opla/1711#tests/containers/0