0

I get the following errors in the Error List panel of Visual Studio 2017 (15.7.4). They started showing up after I updated Visual Studio to this version. I vaguely remember something about the Typescript version changing, but I don't remember what it said exactly.

The errors prevent the application from launching, but if I close and re-open Visual Studio the app will run fine.

The angular application is using Angular 2.

How do I prevent these errors from appearing?

enter image description here

1 Answer 1

1

On the .csproj file, as the last item of the node

<PropertyGroup>

insert the following:

<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>

you can disable the typescript compilation on VS2017 in that way. However, this is more a workaround than a solution.

Sign up to request clarification or add additional context in comments.

2 Comments

That did it! Thanks!
For anyone else: I think the real problem is that after updating Visual Studio, the built-in TypeScript SDK was also updated. For whatever reason the VS TypeScript SDK in VS 15.7.4 does not include TypeScript 2.3 that my angular project.json is using, VS only has 3.0, 2.8, 2.1 available in project properties > TypeScript Build. So...it's one of those "watch out" things that seems to happen with Angular projects and Visual Studio now. In the .NET glory days, we used to be able to update Visual Studio and not have to worry about it breaking our projects -- not so much any more.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.