Skip to content

Unexpected behavior when accessing typeRoots #499

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

Closed
ythecombinator opened this issue May 11, 2017 · 1 comment
Closed

Unexpected behavior when accessing typeRoots #499

ythecombinator opened this issue May 11, 2017 · 1 comment

Comments

@ythecombinator
Copy link

This is my tsconfig.json setup:

{
  "compileOnSave": true,
  "compilerOptions": {
    "declaration": true,
    "sourceMap": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "noImplicitAny": true,
    "rootDir": "./src",
    "outDir": "./lib",
    "preserveConstEnums": true,
    "removeComments": true,
    "target": "es6",
    "typeRoots": ["./node_modules/@types"]
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "**/*-spec.ts"
  ]
}

I've installed typedoc as suggested–since I'm using version 2.3.2:

npm install --save-dev https://github.com/DatenMetzgerX/typedoc/tarball/typescript-2-build

But when I get to call typedoc --out dist/docs --mode modules . through a npm run script, I get the following error:

Error: Unknown option `typeRoots.0`.

And I can't actually figure out what is happening since my current config ("typeRoots": ["./node_modules/@types"]) is valid according to here.

I am new to both TypeScript and typedoc this is more likely to be a mistake of mine than a real problem related to them–then please point and I'll close the issue ASAP 😄 .

@ythecombinator
Copy link
Author

Well, it turns out that following the post from the Cloudfare folks led me to installing an old version probably published before #301. Sorry for bothering you, guys.

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

No branches or pull requests

1 participant