With a web project set to use 4.4 explicitly via the Projet Properties, TypeScript Build:

Note that it says "unavailable".
I get this warning when opening the project with VS2022:
PROJECT.X specifies TypeScript version 4.4, but a matching compiler was not found. Would you like us to update your project to use TypeScript 4.3?

If I change the TypeScript version to "Use latest available":

On loading, the warning becomes:
PROJECT.X is built using TypeScript 4.3, but the TypeScript language service version currently in use by Visual Studio is 4.4. This may be caused by other projects in the solution using a different version of TypeScript. Would you like us to update your project to use TypeScript 4.4?

So these seem to say VS has a 4.4 language service, but not the matching compiler?
I have read:
Microsoft.Typescript.MSBuild package installed, and I have no Typescript SDK installed in Windows.$(PATH) to the top of the list in Options, Projects and Solutions, Web Package Management, External Web Tools.How do I get rid of these warnings?
A solution I found and hope it's working for you.
First, run Visual Studio installer and click "Modify" on your version (sorry the screenshot is in french but it should be the same):

Then go to the tab "individual components" and check "TypeScript 4.4 SDK Kit":

After doing that, the TypeScript version 4.4 became available on the Project Properties page.
However, the latest TypeScript version (4.5.x) doesn't seem to be available with that method.
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