-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Milestone
Description
TypeScript Version: 3.9.2
Search Terms:
project references emit error force noEmitOnError
Code
tsconfig.json
{
"files": [],
"references": [
{ "path": "./project1" }
]
}
project1/tsconfig.json
{
"noEmitOnError": false
}
project1/ok.ts
console.log('Hello world');
project1/fail.ts
const foo: string = 42; // TS error
console.log(foo);
Expected behavior:
When I run tsc --build --force --verbose
, I expect at least project1/ok.js
to be output, because:
ok.ts
compiles correctly- there are no dependencies mentioned in the Caveats section on Project References
- I've specified
"noEmitOnError": false
explicitly inproject1/tsconfig.json
- I've passed the
--force
flag
Actual behavior:
Nothing is generated.
Reproduction repo:
https://github.com/dandv/ts-project-ref-bug
thdk
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug