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

Unknown compiler option 'exclude' #16103

Closed
geoctrl opened this issue May 26, 2017 · 4 comments
Closed

Unknown compiler option 'exclude' #16103

geoctrl opened this issue May 26, 2017 · 4 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@geoctrl
Copy link

geoctrl commented May 26, 2017

TypeScript Version: 2.2.3

Code

$ tsc
// tsconfig.json
{
  "compilerOptions": {
    "declaration": true,
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "outDir": "dist",
    "typeRoots": [
      "./node_modules/@types/"
    ],
    "exclude": [
      "dist"
    ]
  }
}

Expected behavior:
Exclude the list of paths given.

Actual behavior:
Throws error: error TS5023: Unknown compiler option 'exclude'

Last Note
This also occurs when using the options include or files. Were these options depreciated in a recent update to typescript? I can't find any documentation to suggest this...

@ikatyang
Copy link
Contributor

Actually, files, include, etc. are top level fields

{
  "compilerOptions": {},
  "exclude": []
}

@mhegazy
Copy link
Contributor

mhegazy commented May 26, 2017

more docs available at http://www.typescriptlang.org/docs/handbook/tsconfig-json.html

@mhegazy mhegazy added the Question An issue which isn't directly actionable in code label May 26, 2017
@geoctrl
Copy link
Author

geoctrl commented May 26, 2017

@ikatyang thanks - can't believe I missed that 🙄

@geoctrl geoctrl closed this as completed May 26, 2017
@xiaomengHuang
Copy link

{
"compilerOptions": {
"declaration": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "dist",
"typeRoots": [
"./node_modules/@types/"
]
},
"exclude": [
"dist"
]
}

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

4 participants