Saturday, July 2, 2016

Visual Studio VS.Net 2015 RC2 and Typescript

So my Visual Studio solution is throwing a ton of errors due to the latest rx.js component. The Angular2 solution works just fine, VS.Net 2015 RC2 doesn't think so. To resolve the VS 2015 RC2 issue, you can see the fix described at:
https://github.com/Microsoft/TypeScript/issues/8518

This link essentially upgrades your VS.Net 2015 RC2 instances from ts.version 1.8.9 to ts.version 1.8.10 which will fix all the pesky ambient declaration and other similar errors showing up in Visual Studio. 1.8.10 now handles external modules with their nested ambient modules by moving them to imported files since they need to be resolved. As an aside, I found that typings.json resolves much the same issue but in another way.

If you have VS.2015 rc2 you should seriously consider upgrading it with update 3: https://blogs.msdn.microsoft.com/visualstudio/2016/06/27/visual-studio-2015-update-3-and-net-core-1-0-available-now/

Update 3 will take you to ts.version 1.8.34 and should NOT install the ts version 1.8.10 over the top.

Anyways, after installing v 1.8.10 my VS.Net rc2 Angular2 app builds successfully. Will install update 3 tomorrow as it is a 7gb download and can take quite a while to install.

No comments:

Post a Comment