{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/12414","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/12414/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/12414/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/12414/events","html_url":"https://github.com/angular/angular-cli/issues/12414","id":365255340,"node_id":"MDU6SXNzdWUzNjUyNTUzNDA=","number":12414,"title":"ng build --prod: Cannot read property '_walk' of null","user":{"login":"rolphes","id":16646537,"node_id":"MDQ6VXNlcjE2NjQ2NTM3","avatar_url":"https://avatars1.githubusercontent.com/u/16646537?v=4","gravatar_id":"","url":"https://api.github.com/users/rolphes","html_url":"https://github.com/rolphes","followers_url":"https://api.github.com/users/rolphes/followers","following_url":"https://api.github.com/users/rolphes/following{/other_user}","gists_url":"https://api.github.com/users/rolphes/gists{/gist_id}","starred_url":"https://api.github.com/users/rolphes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolphes/subscriptions","organizations_url":"https://api.github.com/users/rolphes/orgs","repos_url":"https://api.github.com/users/rolphes/repos","events_url":"https://api.github.com/users/rolphes/events{/privacy}","received_events_url":"https://api.github.com/users/rolphes/received_events","type":"User","site_admin":false},"labels":[{"id":957896443,"node_id":"MDU6TGFiZWw5NTc4OTY0NDM=","url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20devkit/build-angular","name":"comp: devkit/build-angular","color":"c5def5","default":false},{"id":531674979,"node_id":"MDU6TGFiZWw1MzE2NzQ5Nzk=","url":"https://api.github.com/repos/angular/angular-cli/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04","default":false},{"id":531675405,"node_id":"MDU6TGFiZWw1MzE2NzU0MDU=","url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false},{"id":220593710,"node_id":"MDU6TGFiZWwyMjA1OTM3MTA=","url":"https://api.github.com/repos/angular/angular-cli/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular-cli/milestones/12","html_url":"https://github.com/angular/angular-cli/milestone/12","labels_url":"https://api.github.com/repos/angular/angular-cli/milestones/12/labels","id":3561109,"node_id":"MDk6TWlsZXN0b25lMzU2MTEwOQ==","number":12,"title":"Backlog","description":"Milestone for triaged issues that have not yet been scheduled for resolution.","creator":{"login":"alexeagle","id":47395,"node_id":"MDQ6VXNlcjQ3Mzk1","avatar_url":"https://avatars2.githubusercontent.com/u/47395?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"open_issues":79,"closed_issues":48,"state":"open","created_at":"2018-08-10T14:47:31Z","updated_at":"2018-10-05T15:19:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-09-30T19:51:07Z","updated_at":"2018-10-05T16:12:34Z","closed_at":null,"author_association":"NONE","body":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Versions\r\nNode: v8.11.1\r\nNPM: 6.4.1\r\n\r\nAngular CLI: 6.2.3\r\nNode: 8.11.1\r\nOS: win32 x64\r\nAngular: 6.1.9\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.8.3\r\n@angular-devkit/build-angular     0.8.3\r\n@angular-devkit/build-optimizer   0.8.3\r\n@angular-devkit/build-webpack     0.8.3\r\n@angular-devkit/core              0.8.3\r\n@angular-devkit/schematics        0.8.3\r\n@angular/cli                      6.2.3\r\n@ngtools/webpack                  6.2.3\r\n@schematics/angular               0.8.3\r\n@schematics/update                0.8.3\r\nrxjs                              6.3.3\r\ntypescript                        2.7.2\r\nwebpack                           4.20.2\r\n\r\nWindows 10\r\n\r\n### Repro steps\r\nexecute \"ng build --prod\" -> sorry, I can't provide the repo.\r\n\r\nThis bug suddenly popped up on our build server two days ago. Before that, this problem never occurred. After cleaning node_moduls and npm install I can reproduce the error on my machine too.\r\n\r\n\r\n### The log given by the failure\r\n`Date: 2018-09-28T18:28:46.879Z\r\nHash: 2fa0d73885177ad3220b\r\nTime: 109957ms\r\nchunk {0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.44 kB [entry] [rendered]\r\nchunk {1} main.85d86102e68c1db8c7c4.js (main) 8.08 MB [initial] [rendered]\r\nchunk {2} polyfills.c2c353082061f41763b0.js (polyfills) 98.3 kB [initial] [rendered]\r\nchunk {3} styles.c5267d72f9cea9ab11f3.css (styles) 150 kB [initial] [rendered]\r\n\r\nERROR in main.85d86102e68c1db8c7c4.js from UglifyJs\r\nTypeError: Cannot read property '_walk' of null\r\n    at AST_Dot.eval (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1112:29)\r\n    at TreeWalker._visit (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1513:21)\r\n    at AST_Dot._walk (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1111:24)\r\n    at AST_VarDef.eval (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1058:40)\r\n    at TreeWalker._visit (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1513:21)\r\n    at AST_VarDef._walk (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1056:24)\r\n    at AST_Var.eval (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:966:32)\r\n    at TreeWalker._visit (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1513:21)\r\n    at AST_Var._walk (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:963:24)\r\n    at walk_body (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:513:17)\r\n    at AST_Function.eval (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:739:13)\r\n    at TreeWalker._visit (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:1513:21)\r\n    at AST_Function._walk (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:733:24)\r\n    at AST_Function.walk (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:467:21)\r\n    at get_lvalues (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:8804:34)\r\n    at collapse (eval at <anonymous> (E:\\jenkins\\ProjectX\\workspace\\node_modules\\uglifyjs-webpack-plugin\\node_modules\\uglify-es\\tools\\node.js:21:1), <anonymous>:8565:35)\r\nBuild step 'Execute Windows batch command' marked build as failure\r\n[TASKS] Skipping publisher since build result is FAILURE\r\nSkipped archiving because build is not successful`\r\n\r\n### Desired functionality\r\nBuild optimization with uglifyjs works as before\r\n\r\n### Mention any other details that might be useful\r\nSimilar errors are filed for ember-cli: https://github.com/ember-cli/ember-cli/issues/8075"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/427419148","html_url":"https://github.com/angular/angular-cli/issues/12414#issuecomment-427419148","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/12414","id":427419148,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzQxOTE0OA==","user":{"login":"clydin","id":19598772,"node_id":"MDQ6VXNlcjE5NTk4Nzcy","avatar_url":"https://avatars2.githubusercontent.com/u/19598772?v=4","gravatar_id":"","url":"https://api.github.com/users/clydin","html_url":"https://github.com/clydin","followers_url":"https://api.github.com/users/clydin/followers","following_url":"https://api.github.com/users/clydin/following{/other_user}","gists_url":"https://api.github.com/users/clydin/gists{/gist_id}","starred_url":"https://api.github.com/users/clydin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clydin/subscriptions","organizations_url":"https://api.github.com/users/clydin/orgs","repos_url":"https://api.github.com/users/clydin/repos","events_url":"https://api.github.com/users/clydin/events{/privacy}","received_events_url":"https://api.github.com/users/clydin/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T16:12:34Z","updated_at":"2018-10-05T16:12:34Z","author_association":"MEMBER","body":"if using yarn, using the `resolutions` field within `package.json` would allow you to do that.\r\n\r\nAlso, CLI 7.0 (currently in release candidate stage) using a new variant of `uglify-es` named `terser` which should alleviate the issues being faced here."}}
{"actor":{"display_login":"clydin"}}