Skip to content

[BUG] Failed to pickup Components declaration with double layer spread[BUG] #979

@rexebin

Description

@rexebin
Overview of the issue

Components and providers declared with below structure are not showing in the module structure.
If no spread operations in components or providers array, compodoc works perfectly.

const components = [
  ...productComponents,
  ...serviceComponents,
];

const providers = [  
  ...productProviders,
  ...serviceProviders
];

@NgModule({
   ...
  declarations: [...components],
  providers: [...providers]
})

No error. Components are not linked to their parent module, which make the structure of generated doc very messy and less useful.

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

"@compodoc/compodoc": "^1.1.11"
Windows 10, node v 12.13.1, npm v 6.13.4, yarn v1.22.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions