Skip to content

[BUG] CompoDoc failing to parse or generate the documentation #1433

Closed

Description

@wilferraciolli

When trying to run npm run storybook and compoDoc is enable, then it fails to parse the resolve object on routes.

Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning.

This is my file that fails to parse (If I remove the resolve attribute then it works)
`

      import {inject, NgModule} from '@angular/core';
      import {RouterModule, Routes} from '@angular/router';
      import {PersonListComponent} from './person-list/person-list.component';
      import {AuthGuard} from '../_helpers/auth.guard';
      import {PersonListResolver} from './person-list/person-list.resolver';
      
      const routes: Routes = [
        {
          path: '',
          component: PersonListComponent,
          canActivate: [AuthGuard],
          resolve: {
            'personListLink': () => inject(PersonListResolver).resolvePersonListLink()
          }
        }
      ];
      
      @NgModule({
        imports: [RouterModule.forChild(routes)],
        exports: [RouterModule]
      })
      export class PeopleRoutingModule {
      }

`

Current versions
1.1.23
TypeScript version used by Compodoc : 5.2.2
TypeScript version of current project : 5.0.2
Node.js version : v18.19.0
Operating system : Windows 10

Activity

  1. changed the title [-]CompoDoc failing to parse or generate the documentation[/-] [+][BUG] CompoDoc failing to parse or generate the documentation[/+] on Mar 21, 2024
  2. added a commit that references this issue on May 24, 2026
    9a1cc63
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions