Microsoft/TypeScript

is not under 'rootDir' 'src/'. even with exclude

Open

#30,162 建立於 2019年3月1日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
Experience EnhancementHelp WantedSuggestion

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

exclude compiler option is not working at all! I'm specifying exclude to the folder gen (and even ./gen) and still receiving the error below.

TypeScript Version: 3.3.3333

Search Terms:

Code

// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Expected behavior: No errors.

Actual behavior:

error TS6059: File '.../ts-lang/gen/grammar/MyLangLexer.ts' is not under 'rootDir' 'src/'. 'rootDir' is expected to contain all source files.

Playground Link:

Related Issues:

貢獻者指南