Static GitHub Issues

[216] ERROR in server-bundle.js from UglifyJs

prev: Cannot set property '$loading' of undefined on page load
next: Vue plugin integration
ERROR in server-bundle.js from UglifyJs
SyntaxError: Unexpected token punc «)», expected punc «(» [server-bundle.js:194,13]
Webpack build exited with errors
error Command failed with exit code 1.

nuxt.config.js:

build: {
  extend (config, { dev }) {
    if (!dev) {
      config.devtool = false
      config.plugins.push(
        new webpack.optimize.UglifyJsPlugin({
          parse: {
            strict: true
          },
          compress: {
            unsafe: true,
            warnings: false,
            drop_console: true
          },
          output: {
            comments: false,
            ascii_only: true,
            inline_script: true
          },
          mangle: true
        })
      )
    }
  }
}

How to fix it ? :(

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c186">#c186</a>)</em></sub></div>