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

Circular reference when outputting JSON with generic type array #1131

Closed
1 task done
williamkbentley opened this issue Nov 13, 2019 · 3 comments
Closed
1 task done
Labels
bug Functionality does not match expectation

Comments

@williamkbentley
Copy link

Expected Behavior

JSON produced

Actual Behavior

TypeError: Converting circular structure to JSON

Steps to reproduce the bug

Consider a project with a single file:

  export class Foo {
  }

  export class FooList extends Array<Foo> {  }

This works with --out, but produces the above circular structure error with option --json. I have isolated the issue down to the FooList line.
Works in 0.15.0.

Environment

  • Typedoc version: 0.15.1
  • Node.js version: 10.15.0
  • OS: Windows
@williamkbentley williamkbentley added the bug Functionality does not match expectation label Nov 13, 2019
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 13, 2019

Well, at least it was easy to track down.... I should have caught this. Introduced by 0a61a00

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 13, 2019

But apparently this reveals another bug... Which I knew existed, but now feel like I should fix for this.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 14, 2019

Fix published in v0.15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants