Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wilferraciolli opened this issue Jan 30, 2024 · 0 comments
Open

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

wilferraciolli opened this issue Jan 30, 2024 · 0 comments

Comments

@wilferraciolli
Copy link

wilferraciolli commented Jan 30, 2024

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

@vogloblinsky vogloblinsky changed the title CompoDoc failing to parse or generate the documentation [BUG] CompoDoc failing to parse or generate the documentation Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants