Skip to content

[BUG] Routes parsing error on multiple route parameters #1302

Closed

Description

@samlanzz
Overview of the issue

When using multiple route parameters, compodoc throws an error (see below) and fails to generate route documentation.
Here are a few route path test scenarios and whether they work or not:

  • `sample/:${sample}/example/:${example}` ❌
  • 'sample/:sample/example/:example' ❌
  • 'sample/:sample' ✅
  • `sample/:${sample}` ✅
Operating System, Node.js, npm, compodoc version(s)

Operating System: MacOS Ventura 13.0
Node.js: 18.4.0
npm: 8.13.2
compodoc: 1.1.19
angular: 14.0.4

Compodoc installed globally or locally ?

Compodoc is installed locally.

If possible your terminal logs before the error

[14:27:15] Routes parsing error, maybe a trailing comma or an external variable, trying to fix that later after sources scanning.

Motivation for or Use Case

Many of our routes contain multiple parameters that are provided via variables. Since it's default Angular functionality and the routes work in the application, I see no reason not to support this.

Reproduce the error

Here is a Stackblitz where the error can be reproduced by running npm run doc.

Related issues

#1293

Activity

  1. changed the title [-][BUG] Routes parsing error, maybe a trailing comma or an external variable[/-] [+][BUG] Routes parsing error on multiple route parameters[/+] on Nov 14, 2022
  2. stale commented on Jun 18, 2023

    @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.

  3. added a commit that references this issue on May 25, 2026
    92a8480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions