I am completely puzzled by the mismatch in Typescript versions when using Visual Studio 2019 with my .NET Core 2.2.x project. Every time I make changes to a .ts file, I receive the following warning (found in the error list):
Your project is built using TypeScript 3.4, but the TypeScript language service version currently in use by Visual Studio is 3.4.3. Your project may be utilizing TypeScript language features that will cause errors during compilation with this version of the TypeScript compiler. To get rid of this warning, either install TypeScript 3.4.3 SDK or update the TypeScript version in your project's properties.
Despite the fact that package.json explicitly states "typescript": "3.4.3"
, it insists that my project is created with TypeScript 3.4.
https://i.stack.imgur.com/7WQoj.png
The suggestion is to install TypeScript SDK 3.4.3, which I already have from this link. Additionally, I ran npm install -g typescript
earlier, so the command tsc -v
shows Version 3.4.3
.
What piece of the puzzle am I overlooking?