Problem running ng Angular build

Hello, I'm having problem in Angular when I squeegee the following command for building in the project directory ng build --prod --aot=false, How do I solve the problem?What and why is this error occurring?
Below is the log of the error that occurs after executing the command.

ERROR in vendor.0963fa6ef0f8a97eaa25.bundle.js from UglifyJs
TypeError: Cannot read property '_walk' of null
    at AST_Dot.eval (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1112:29)
    at TreeWalker._visit (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1513:21)
    at AST_Dot._walk (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1111:24)
    at AST_VarDef.eval (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1058:40)
    at TreeWalker._visit (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1513:21)
    at AST_VarDef._walk (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1056:24)
    at AST_Var.eval (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:966:32)
    at TreeWalker._visit (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1513:21)
    at AST_Var._walk (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:963:24)
    at walk_body (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:513:17)
    at AST_Function.eval (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:739:13)
    at TreeWalker._visit (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:1513:21)
    at AST_Function._walk (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:733:24)
    at AST_Function.walk (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:467:21)
    at get_lvalues (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8804:34)
    at collapse (eval at <anonymous> (/home/marcelo/Desktop/Mercatorio/dashboard/node_modules/uglifyjs-webpack-plugin/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8565:35)

Error image Print: insert the description of the image here

Author: Marcelo Henrique Dos Reis, 2018-11-06

1 answers

The error you have apparently refers to this angular - cli link https://github.com/angular/angular-cli/issues/12414#issuecomment-428161804

It says that if your project has a dependency on the library tether you have to perform the downgrade to version 1.4.3.

Or update terser to version 3.10.7 by following the steps:

  • check the current installed version of terser: npm ls terser
  • install and uninstall the terser with npm install [email protected] npm uninstall terser
  • you should now see the latest version of terser in npm ls terser
 1
Author: Patrick Lima, 2018-11-06 18:36:39