Skip to content

TS type check is checking my lib incorrectly when added it to an App project. #27125

Discussion options

You must be logged in to vote

Thanks for reporting this!

This is the expected behavior for TypeScript with your setup. The my-app project depends on the source code of products and when you run tsc -p apps/my-app/tsconfig.app.json, the TS compiler creates a ts.Program for that configuration file. It doesn't use any other configuration file unless is extended or referenced. In this case, it extends the tsconfig.base.json and it doesn't reference any other configuration file. Therefore, every file included in the ts.Program will be processed with the apps/my-app/tsconfig.app.json configuration (plus the merged config from the extended tsconfig.base.json). The library source code is part of the ts.Program because:

  • the t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joel-daros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #23448 on July 25, 2024 16:28.