TypeScript Version:
1.8.30.0
Issue
We have a solution with a number of web projects. We recently made a new project which used a tsconfig.json file.
This affected other projects to believe they had a tsconfig.json file, overriding our project typescript settings for those projects.
"One or more tsconfig.json files detected. Project properties are disabled."
I've checked and the project file itself does not contain any reference to any tsconfig.json files nor does the project folder contain a tsconfig file.
Reproduce
How do I prevent a Visual Studio 2015 project from finding / detecting tsconfig.json files that are in another project folder?
You could use multiple tsconfig files to solve some of those problems, but new ones would appear: There's no built-in up-to-date checking, so you end up always running tsc twice.
The tsconfig.json file specifies the root files and the compiler options required to compile the project. JavaScript projects can use a jsconfig.json file instead, which acts almost the same but has some JavaScript-related compiler flags enabled by default.
The tsconfig. json is generally put in the root folder of the project.
I had this problem also. I solved it by this:
tsconfig.json
file and choose 'Exclude From Project'.tsconfig.json
disappear from the Solution Explorer. In that case choose 'Show All Files' option from the top of the Solution Explorer toolbar.tsconfig.json
and choose 'Include In Project'.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With