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

Error with nested tsconfig extends #380

Closed
raveclassic opened this issue Jan 13, 2017 · 3 comments
Closed

Error with nested tsconfig extends #380

raveclassic opened this issue Jan 13, 2017 · 3 comments

Comments

@raveclassic
Copy link

raveclassic commented Jan 13, 2017

Hi!
Recent typescript supports configuration inheritance via "extends" in tsconfig.json. Everything's working until extended config tries to extend another itself.
Example:

//tsconfig.json
{
 "extends": "./tsconfig.a.json"
}

//tsconfig.a.json
{
 "extends": "./tsconfig.b.json",
}

//tsconfig.b.json
{
 "compilerOptions": {
 }
}

An error occures: TypeError: Cannot convert undefined or null to object at typedoc\dist\lib\utils\options\readers\tsconfig.js:60 when trying to delete compilerOptions[key];.
Seems like data.raw does not contain compilerOptions at all.

ts: 2.1.5
typedoc: 0.5.5
@DennisJaamann
Copy link

+1, having the same issue:

  • NodeJS 7.0.0
  • TypeScript 2.2.0-dev.20161212
  • TypeDoc 0.5.5

@lddubeau
Copy link
Contributor

If I install 0.5.5, I can reproduce the problem without any use of "extends". I just need to have a tsconfig.json that contains {} and the error occurs.

I cannot reproduce the problem with typedoc 0.7.1. Consequently, this should be closed.

@aciccarello
Copy link
Collaborator

Reopening due to questions raised in #1089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants