Opla / opla-v2

:rocket: :robot: Your open chatbot builder. Start here to install Opla. :sparkles:
https://opla.ai
GNU General Public License v2.0
51 stars 8 forks source link

CICD front_build fail #84

Closed lodelestra closed 5 years ago

lodelestra commented 5 years ago

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

Link to CI https://circleci.com/gh/Opla/opla/1711#tests/containers/0

lodelestra commented 5 years ago

close by #115