Skip to content

Error: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'. #811

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
brainkim opened this issue Jul 4, 2018 · 2 comments

Comments

@brainkim
Copy link

brainkim commented Jul 4, 2018

Running typedoc on my source code throws the error:
Error: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'.

I use typescript with babel 7 so I only produce declaration files in my build with typescript. The error message was changed in typescript 2.8.1 (microsoft/TypeScript#22425) so it might have something to do with the typescript compiler version but I’m not sure.

command

typedoc --out docs src

tsconfig.json

{
  "compilerOptions": {
    "jsx": "preserve",
    "outDir": "lib",
    "lib": ["ES2017"],
    "declaration": true,
    "strictNullChecks": true,
    "downlevelIteration": true,
    "emitDeclarationOnly": true,
    "moduleResolution": "node"
  },
  "include": ["src/**/*", "test/**/*"]
}
@aciccarello
Copy link
Collaborator

Hello @brainkim, you are correct that this is due to TypeDoc using an old version of TypeScript. This will be fixed in the next release.

@brainkim
Copy link
Author

brainkim commented Aug 3, 2018

@aciccarello Is there a place where I can track typescript support for typedoc?

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

2 participants