TypeScript Version: 2.6.2 xxxxx
Search Terms:
"Option 'declarationDir' cannot be specified without specifying option 'declaration'"
Code
Assuming have tsconfig.json like this:
{
"compilerOptions": {
"module": "esnext",
"target": "es6",
"lib": ["es6", "dom"],
"moduleResolution": "node",
"declarationDir": "dist/types",
"declaration": true,
}
}
Expected behavior:
In terminal:
or
tsc --declaration false ----declarationDir ''
wroks.
Actual behavior:
In terminal:
reports: "error TS5052: Option 'declarationDir' cannot be specified without specifying option 'declaration'."
tsc --declaration false ----declarationDir ''
reports: "error TS6044: Compiler option 'declarationDir' expects an argument."
Playground Link:
Related Issues:
TypeScript Version: 2.6.2 xxxxx
Search Terms:
"Option 'declarationDir' cannot be specified without specifying option 'declaration'"
Code
Assuming have tsconfig.json like this:
{ "compilerOptions": { "module": "esnext", "target": "es6", "lib": ["es6", "dom"], "moduleResolution": "node", "declarationDir": "dist/types", "declaration": true, } }Expected behavior:
In terminal:
or
wroks.
Actual behavior:
In terminal:
reports: "error TS5052: Option 'declarationDir' cannot be specified without specifying option 'declaration'."
reports: "error TS6044: Compiler option 'declarationDir' expects an argument."
Playground Link:
Related Issues: