Skip to content

[BUG] Route Page Exception #539

Closed
Closed

Description

@sis-jhess
Overview of the issue

Generated Routes pages does not render any routes.
No error messages during generation.
Other pages working correctly.

Open Chrome Debugger, see the following:

prism.js:14 Uncaught TypeError: Cannot read property 'toString' of undefined
at prism.js:14
at prism.js:14
(anonymous) @ prism.js:14
(anonymous) @ prism.js:14
d3.v3.min.js:2 Uncaught TypeError: e.sort is not a function
at d3.v3.min.js:2
at ui (d3.v3.min.js:2)
at n (d3.v3.min.js:2)
at HTMLDocument. (routes.js:37)

Operating System, Node.js, npm, compodoc version(s)

Windows 10
Node 6.11.4
Compodoc 1.1.2

Angular configuration, a package.json file in the root folder

Attached
package.json.txt

Compodoc installed globally or locally ?

Globally installed compodoc

Motivation for or Use Case

We love compodoc, but desperately need to see the routing graph to

Reproduce the error

Routes_index.js as generated attached (plus pretty printed)
routes_index.js.txt

Related issues

I see 'similar' issues, but have not been able to deduce the necessary changes (if it is our code).
#216 ??

Suggest a Fix

Activity

  1. added this to the 1.1.3 milestone on Apr 13, 2018
  2. vogloblinsky commented on Apr 13, 2018

    @vogloblinsky
    Contributor

    Is it possible to have the routes detail inside src/app/app.routing.ts ?

  3. sis-jhess commented on Apr 13, 2018

    @sis-jhess
    Author
    import { NgModule } from '@angular/core';
    import { RouterModule, Routes } from '@angular/router';
    import { DesktopComponent } from './desktop/desktop.component';
    import { HomePageComponent } from './styleguide/styleguide.component';
    import { InitService } from './core/services/InitService/init.service';
    import { LoginPageComponent } from './login-page/login-page.component';
    import { prototypeRoutes } from './styleguide/prototypes/prototype-routing.module';
    import { EnterpriseConfigurationComponent } from './enterprise-configuration/enterprise-configuration.component';
    import { enterpriseConfigurationRoutes } from './enterprise-configuration/enterprise-configuration.routing';
    import { PatientFacesheetComponent } from './patient-facesheet/patient-facesheet.component';
    import { desktopRoutes } from './desktop/desktop.routing';
    import { facesheetRoutes } from './patient-facesheet/patient-facesheet.routing';
    import { AnesthesiaComponent } from 'app/anesthesia/anesthesia.component';
    import { anesthesiaRoutes } from 'app/anesthesia/anesthesia.routing';
    
    const appRoutes: Routes = [
      {
        path: '', component: DesktopComponent, children: desktopRoutes,
        canActivate: [InitService]
      },
      {
        path: 'StyleGuide', component: HomePageComponent, children: prototypeRoutes,
        canActivate: [InitService]
      },
      { path: 'login', component: LoginPageComponent },
      {
        path: 'Enterprise-Configuration', component: EnterpriseConfigurationComponent, children: enterpriseConfigurationRoutes,
        canActivate: [InitService]
      },
      {
        path: 'Facesheet/:patientID', component: PatientFacesheetComponent, children: facesheetRoutes,
        canActivate: [InitService]
      },
      {
        path: 'Anesthesia/Patient/:patientID/Case/:caseID', component: AnesthesiaComponent, children: anesthesiaRoutes,
        canActivate: [InitService]
      },
      {
        path: '**', component: DesktopComponent, children: desktopRoutes,
        canActivate: [InitService]
      } // this entry needs to be last
    ];
    
    // const routeOptions: ExtraOptions = {
    //   enableTracing: true
    // };
    
    @NgModule({
      imports: [
        RouterModule.forRoot(appRoutes)
      ],
      exports: [
        RouterModule
      ],
      providers: [
        InitService
      ]
    })
    export class AppRoutingModule {
    }
    
  4. sis-jhess commented on Apr 13, 2018

    @sis-jhess
    Author

    Thanks - we've inherited this project and need Compodoc to generate it's pages so we can better figure out what we've been left with!

  5. vogloblinsky commented on Apr 13, 2018

    @vogloblinsky
    Contributor

    Ok reproduced.
    The children routes, for example prototypeRoutes are dynamic references Compodoc need to handles too to have a complete reference of all the routes during the parsing.

  6. modified the milestones: 1.1.3, 1.1.4 on Apr 26, 2018
  7. removed this from the 1.1.4 milestone on Aug 24, 2018
  8. 2 remaining items

  9. added this to the 1.1.7 milestone on Oct 10, 2018
  10. modified the milestones: 1.1.7, 1.1.9 on Jan 29, 2019
  11. modified the milestones: 1.1.9, 1.3.0 on Feb 23, 2019
  12. stale commented on Sep 30, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  13. stale commented on Oct 7, 2019

    @stale

    This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.

  14. lock commented on Dec 6, 2019

    @lock

    This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

  15. locked as resolved and limited conversation to collaborators on Dec 6, 2019
  16. added a commit that references this issue on May 24, 2026
    b75392a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions