Angular2: Resolve TS5023 Build:Unknown compiler option ‘typeRoots’ and ‘types’ error in Visual Studio

Standard

I installed fresh copy of Visual Studio 2015 update 3 on my secondary machine and try to execute Angular2 project integrated with ASP.NET CORE and came across an issue

TS5023 Build:Unknown compiler option 'typeRoots'
TS5023 Build:Unknown compiler option 'types'

Solution 1:

In VS2015 go to:

Tools -> Options -> Projects and Solutions -> External Web Tools.

uncheck anything that starts with $(VSINSTALLDIR)

Solution 2 (recommended):

Before trying any other option, I just updated Typescript version installed for VS2015 from 2.0.3 to 2.2.0 and this resolve compiler option error, Upgrade to latest version of Typescript by installing executable from MS Official Download link.

9 thoughts on “Angular2: Resolve TS5023 Build:Unknown compiler option ‘typeRoots’ and ‘types’ error in Visual Studio

  1. finance companies

    My partner and I stumbled over here coming from a different web address and thought I should check things out. I like what I see so now i am following you. Look forward to going over your web page yet again.|

    Like

  2. college tips

    Outstanding post however I was wanting to know if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit further. Kudos!

    Like

  3. Elinor

    Hi there! Do you use Twitter? I’d like to
    follow you if that would be ok. I’m undoubtedly enjoying your blog
    and look forward to new posts.

    Like

  4. payday loans

    Hello there, just became aware of your blog through Google, and
    found that it’s really informative. I’m gonna watch
    out for brussels. I will appreciate if you continue this in future.
    Lots of people will be benefited from your writing. Cheers!

    Like

  5. feminist wave after wave shirt

    Greetings! Very helpful advice in this particular post!

    It is the little changes that produce the largest changes.
    Thanks for sharing!

    Like

Leave a comment