Visual Studio 2017 generates TypeScript errors for a project that does not use TypeScript

Any ideas on why VS2017 would run the TypeScript compiler (tsc.exe) on a project that doesn't use TypeScript would be helpful?

I have a solution that contains three ASP.Net web applications. One of the three uses TypeScript, while the other two do not include .ts files, no tsconfig files, and no MSBCs tags for Typectript. However, one of the two projects that do not use TS generates the following TypeScript compiler errors when the project is created and even when the solution is first opened. I've removed the project name from the errors listed below, but I assure you that these errors are from one of the projects that don't use Typescript.

This issue doesn't exist when I open (or build) the same solution in Visual Studio 2015.

Error TS2451 Unable to override JSON range variable. (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 991 Active Error TS2451 Unable to override variable with range "JSON". C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 991 Active Error TS2451 Unable to override variable with range "JSON". C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 1018 Active Error TS2451 Unable to override variable with range "JSON". C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 1018 Active Error TS2451 Unable to override variable with range "JSON". C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 5714 Active Error TS2451 Unable to override variable with range "JSON". C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Enterprise \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TypeScript \ lib.es6.d.ts 5714 Active Error TS2403 Subsequent variable declarations must be of the same type. The "require" variable must be of type "any", but there is a type "NodeRequire". C: \ Users \ gregb \ AppData \ Local \ Microsoft \ TypeScript \ node_modules \ @types \ node \ index.d.ts 73 Active Error TS2403 Subsequent variable declarations must be of the same type. The "require" variablemust be of type "any", but there is type "NodeRequire". C: \ Users \ gregb \ AppData \ Local \ Microsoft \ TypeScript \ node_modules \ @types \ node \ index.d.ts 73 Active Error TS2403 Subsequent variable declarations must be of the same type. The variable "swfobject" must be of type "{registerObject: (ab: any, X: any, aa: any, Z: any) => void; getObjectById: (X: any) => Element; ... ', but here there is a SwfObject type C: \ Users \ gregb \ AppData \ Local \ Microsoft \ TypeScript \ node_modules \ @types \ swfobject \ index.d.ts 6 Active TS2403 error Subsequent variable declarations must be of the same type. The "swfobject" variable must be of type "{registerObject: (ab: any, X: any, aa: any, Z: any) => void; getObjectById: (X: any) => Element; ... ', but there is a SwfObject type here. C:\ Users \ gregb \ AppData \ Local \ Microsoft \ TypeScript \ node_modules \ @types \ swfobject \ index.d.ts 6 Active

+3


source to share





All Articles