Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript compiling fine, but still getting intellisense errors

Very frustrating, I am in a situation where TypeScript is compiling fine, but I am still getting Intellisense errors.

This is TypeScript 1.7 in Visual Studio 2015, Update 1.

Error saying TypeScript 1.5 feature. Current language level is 1.4.

Error saying Symbol Component cannot be properly resolved, probably it is located in inaccessible module.

When I make a change and hit save however, it compiles fine, and the underlying Javascript gets updated.

Any ideas?

Cheers

like image 906
JMK Avatar asked Dec 19 '15 19:12

JMK


1 Answers

You could check out your .csproj file if you have a c#-based project. Sometimes there's an incorrect version of typescript. Look for a string with:

<TypeScriptToolsVersion>version</TypeScriptToolsVersion>

There should be 1.7.

like image 118
shadeglare Avatar answered Nov 12 '22 07:11

shadeglare