You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[08:45:30] parsing : D:/xxx/xxx-xx-routing.module.ts
[08:45:30] Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning.
My routing module is:
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuardService } from '../common/services/auth-guard.service';
import { AComponent} from './a.component';
import { Role } from '../common/model/enum/role.enum';
const routes: Routes = [
{
path: 'a-path',
component: AComponent,
data: { requiresLoggedIn: true, requiresRole: [ Role.ROLE_XXX ] },
canActivate: [ AuthGuardService ]
}
];
@NgModule({
imports: [
RouterModule.forChild(routes)
],
exports: [
RouterModule
]
})
export class XXXRoutingModule { }
[01:28:22] found : AppComponent
[01:28:22] parsing : /Users/aleks/Projects/mentarea-front/src/app/app.module.ts
[01:28:22] Analysing routes definitions and clean them if necessary
[01:28:22] Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning.
Unhandled Rejection at: Promise {
<rejected> TypeError: Cannot read property 'kind' of undefined ....
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.
Activity
[-][BUG ]Route parsing error[/-][+][BUG] Route parsing error[/+]vogloblinsky commentedon Jul 5, 2017
Related to #51
I have to enhance the routes parsing with external variable support.
tomaszwawrzyniakit commentedon Sep 22, 2017
Not work for me.
Compodoc installed globally or locally ?
locally
Versions
compodoc: 1.0.2
node: 6.0.88
Windows 7
vogloblinsky commentedon Nov 17, 2017
Bug fixed for dynamic path and pathMatch for route definition.
Need to work on other parts of route description : https://angular.io/api/router/Routes#description
Gruwa commentedon Mar 13, 2018
Same problem
following issue:
routing module is:
Compodoc installed globally or locally ?
locally
Versions
compodoc: 1.0.9
node: 8.9.4
Mac OS X version 10.11.6
gangfang commentedon Apr 2, 2018
@Gruwa Please update compodoc from 1.0.9 to 1.1.1 (latest).
Just tried it, the problem is resolved.
lock commentedon Sep 30, 2019
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.