{"action":"created","issue":{"url":"https://api.github.com/repos/compodoc/compodoc/issues/616","repository_url":"https://api.github.com/repos/compodoc/compodoc","labels_url":"https://api.github.com/repos/compodoc/compodoc/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/compodoc/compodoc/issues/616/comments","events_url":"https://api.github.com/repos/compodoc/compodoc/issues/616/events","html_url":"https://github.com/compodoc/compodoc/issues/616","id":349083803,"node_id":"MDU6SXNzdWUzNDkwODM4MDM=","number":616,"title":"[BUG] Routes : Cannot read property 'depth' of undefined","user":{"login":"anthonybriand","id":1897855,"node_id":"MDQ6VXNlcjE4OTc4NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1897855?v=4","gravatar_id":"","url":"https://api.github.com/users/anthonybriand","html_url":"https://github.com/anthonybriand","followers_url":"https://api.github.com/users/anthonybriand/followers","following_url":"https://api.github.com/users/anthonybriand/following{/other_user}","gists_url":"https://api.github.com/users/anthonybriand/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybriand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybriand/subscriptions","organizations_url":"https://api.github.com/users/anthonybriand/orgs","repos_url":"https://api.github.com/users/anthonybriand/repos","events_url":"https://api.github.com/users/anthonybriand/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybriand/received_events","type":"User","site_admin":false},"labels":[{"id":462968396,"node_id":"MDU6TGFiZWw0NjI5NjgzOTY=","url":"https://api.github.com/repos/compodoc/compodoc/labels/1.%20Type:%20Bug","name":"1. Type: Bug","color":"e11d21","default":false},{"id":775673442,"node_id":"MDU6TGFiZWw3NzU2NzM0NDI=","url":"https://api.github.com/repos/compodoc/compodoc/labels/Context%20:%20routing","name":"Context : routing","color":"2dcae2","default":false},{"id":622756415,"node_id":"MDU6TGFiZWw2MjI3NTY0MTU=","url":"https://api.github.com/repos/compodoc/compodoc/labels/Priority:%20Medium","name":"Priority: Medium","color":"fbca04","default":false},{"id":622758899,"node_id":"MDU6TGFiZWw2MjI3NTg4OTk=","url":"https://api.github.com/repos/compodoc/compodoc/labels/Status:%20Accepted","name":"Status: Accepted","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-09T11:15:29Z","updated_at":"2018-09-25T02:35:33Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n> Please follow the issue template below for bug reports and queries.\r\n> For issue, start the label of the title with [BUG]\r\n> For feature requests, start the label of the title with [FEATURE] and explain your use case and ideas clearly below, you can remove sections which are not relevant.\r\n-->\r\n\r\n##### **Overview of the issue**\r\n\r\nError when generating application routing documentation\r\n\r\nStack :\r\n```bash\r\n[12:50:19] Process page   : routes\r\nUnhandled Rejection at: Promise {\r\n  <rejected> TypeError: Cannot read property 'depth' of undefined\r\n    at Object.eval [as main] (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:6:93)\r\n    at main (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:175:32)\r\n    at Object.ret (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:178:12)\r\n    at Object.ret [as routes] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:526:21)\r\n    at Object.invokePartialWrapper [as invokePartial] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:72:46)\r\n    at eval (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:5:31)\r\n    at Object.prog [as fn] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:221:12)\r\n    at CompareHelper.helperFunc (/usr/local/share/.config/yarn/global/node_modules/@compodoc/compodoc/dist/index-cli.js:155:24)\r\n    at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/@compodoc/compodoc/dist/index-cli.js:2857:38)\r\n    at Object.eval [as main] (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:48:65) } reason: TypeError: Cannot read property 'depth' of undefined\r\n    at Object.eval [as main] (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:6:93)\r\n    at main (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:175:32)\r\n    at Object.ret (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:178:12)\r\n    at Object.ret [as routes] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:526:21)\r\n    at Object.invokePartialWrapper [as invokePartial] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:72:46)\r\n    at eval (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:5:31)\r\n    at Object.prog [as fn] (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/runtime.js:221:12)\r\n    at CompareHelper.helperFunc (/usr/local/share/.config/yarn/global/node_modules/@compodoc/compodoc/dist/index-cli.js:155:24)\r\n    at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/@compodoc/compodoc/dist/index-cli.js:2857:38)\r\n    at Object.eval [as main] (eval at createFunctionContext (/usr/local/share/.config/yarn/global/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:254:23), <anonymous>:48:65)\r\n[10:32:44] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)\r\n```\r\n\r\n##### **Operating System, Node.js, npm, compodoc version(s)**\r\n\r\n- **OS**\r\n- - Ubuntu Docker Image\r\n- **Node.JS**\r\n- - 9.7.1\r\n- **NPM**\r\n- - 5.6.0\r\n- **Yarn**\r\n- - 1.9.4\r\n- **Compodoc**\r\n- - 1.1.3\r\n\r\n##### **Angular configuration, a `package.json` file in the root folder**\r\n\r\nI can not reveal the package.json (work related). I am using a CLI-generated workspace, with library support\r\n\r\n##### **Compodoc installed globally or locally ?**\r\n\r\nGlobally with yarn\r\n\r\n##### **If possible sourcecode of the file where it breaks**\r\n\r\nAt the route page processing\r\n\r\n```\r\nimport {NgModule} from '@angular/core';\r\nimport {RouterModule, Routes} from '@angular/router';\r\nimport {HomeComponent} from './component/home/home.component';\r\nimport {LandingComponent, LoginComponent, BComponent} from '@naval-group/cpm-suite';\r\n\r\nconst routes: Routes = [\r\n  {\r\n    path: '',\r\n    component: LandingComponent,\r\n    children: [\r\n      {\r\n        path: '',\r\n        pathMatch: 'full',\r\n        component: LoginComponent\r\n      },\r\n      {\r\n        path: 'b',\r\n        pathMatch: 'full',\r\n        component: BComponent\r\n      }\r\n    ]\r\n  },\r\n  {\r\n    path: 'home',\r\n    component: HomeComponent,\r\n    children: [\r\n      {\r\n        path: '',\r\n        pathMatch: 'full',\r\n        redirectTo: 'a-list'\r\n      },\r\n      {\r\n        path: 'b/:id',\r\n        loadChildren: './module/b/b.module#BModule'\r\n      },\r\n      {\r\n        path: 'a-list',\r\n        loadChildren: './module/a/a.module#AModule'\r\n      },\r\n      {\r\n        path: 'c',\r\n        loadChildren: './module/c/c.module#CModule'\r\n      },\r\n      {\r\n        path: 'd',\r\n        loadChildren: './module/d-wrapper/d-wrapper.module#DWrapperModule'\r\n      }\r\n    ]\r\n  }\r\n];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forRoot(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n```\r\n\r\n##### **If possible your terminal logs before the error**\r\n\r\nI can only give you these parts\r\n```\r\nTypescript version : 2.8.3\r\n\r\nNode.js version : v9.11.2\r\n\r\nOperating system : Linux 4.9\r\n...\r\n[13:03:36] -------------------\r\n[13:03:36] Project statistics \r\n[13:03:36] - files      : 1124\r\n[13:03:36] - module     : 19\r\n[13:03:36] - component  : 93\r\n[13:03:36] - directive  : 3\r\n[13:03:36] - injectable : 20\r\n[13:03:36] - injector   : 1\r\n[13:03:36] - pipe       : 1\r\n[13:03:36] - class      : 33\r\n[13:03:36] - interface  : 36\r\n[13:03:36] - route      : 16\r\n[13:03:36] -------------------\r\n...\r\n[13:03:41] Process page   : dependencies\r\n[13:03:41] Process page   : enumerations\r\n[13:03:41] Process page   : functions\r\n[13:03:41] Process page   : index\r\n[13:03:41] Process page   : modules\r\n[13:03:41] Process page   : overview\r\n[13:03:41] Process page   : routes\r\n```\r\n\r\n##### **Motivation for or Use Case**\r\n\r\nCan't generate a documentation\r\n\r\n##### **Reproduce the error**\r\n\r\nIt fails even with an empty or full routing module\r\n\r\n##### **Related issues**\r\n\r\nI searched but I can't find anything that approaches\r\n\r\n##### **Suggest a Fix**\r\n"},"comment":{"url":"https://api.github.com/repos/compodoc/compodoc/issues/comments/424187833","html_url":"https://github.com/compodoc/compodoc/issues/616#issuecomment-424187833","issue_url":"https://api.github.com/repos/compodoc/compodoc/issues/616","id":424187833,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDE4NzgzMw==","user":{"login":"roopeshreddy","id":1386644,"node_id":"MDQ6VXNlcjEzODY2NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1386644?v=4","gravatar_id":"","url":"https://api.github.com/users/roopeshreddy","html_url":"https://github.com/roopeshreddy","followers_url":"https://api.github.com/users/roopeshreddy/followers","following_url":"https://api.github.com/users/roopeshreddy/following{/other_user}","gists_url":"https://api.github.com/users/roopeshreddy/gists{/gist_id}","starred_url":"https://api.github.com/users/roopeshreddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roopeshreddy/subscriptions","organizations_url":"https://api.github.com/users/roopeshreddy/orgs","repos_url":"https://api.github.com/users/roopeshreddy/repos","events_url":"https://api.github.com/users/roopeshreddy/events{/privacy}","received_events_url":"https://api.github.com/users/roopeshreddy/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T02:35:33Z","updated_at":"2018-09-25T02:35:33Z","author_association":"NONE","body":"Same issue. After downgrading to 1.0.1 worked for me! "}}
{"actor":{"display_login":"roopeshreddy"}}