mercredi 10 octobre 2018

ember-cli on production Build Error (UglifyWriter) Cannot read property '_walk' of null

i have a compilation bug only happening in production build. i cannot find why this happens. other mystery is why the build (broccoli-uglify-sourcemap) is producing sourcemap of the files i did setup as excluded in minifyJS of the config file (following here).

here is the part concerning the minification of my config file ember-cli-build.js

module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
// ...

    minifyJS: {
      async: true,
      options: {
        compress: {
          collapse_vars: false
        },
        exclude: [
          "**/mylib.js",
          "**/zxcvbn-js.js"]
      }
    },
// ...

the command i run to build:

ember build --environment production 

when i setup dependencies with yarn, it builds well for dev and production. but, when i setup dependencies with npm (like our jenkins does), it breaks this "Build Error (UglifyWriter) Cannot read property '_walk' of null".

some info:

ember-cli: 2.18.0 node: 8.10.0 npm: 6.4.1 yarn: 1.10.1 os: linux x64 (ubuntu 18.04)




Aucun commentaire:

Enregistrer un commentaire