Skip to main content

Typescript vstsc "Out Of Stack Space" error


I have been having some issues with typescript 0.9.5 lately and one thing that just started happening was that typescript started giving me an "Out Of Stack Space" exception and the project did not want to compile.
I uninstalled and re-installed multiple times, rebooted my PC and Visual Studio but nothing worked.

I couldn't really find any threads online that helped, I found one thread but it DID NOT SOLVE my problem, this thread is located here if anyone is intested anyway: http://stackoverflow.com/questions/31409941/visual-studio-typescript-out-of-stack-space basically their answer was the following:
"...We apparently had too many string constants. Once we removed those the 'out of stack space' stopped occurring."
Unfortunately for me that was not my problem.

I finally found a workaround for this, I noticed that by installing typescript 1.0 and updating my project to use Typescript 1.0 instead of Tyescript 0.9.5 the project started compiling again, but although it started working I couldn't just upgrade typescript in our production environment, so I just had to find a workaround for my local environment.

So in short, what I did to fix my local building problem was the following:

  1. Install Typescript 1.0
  2. Copy C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0 to C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.9 making sure to overwrite all the files (might be best to delete everything from the 0.9 folder first)
  3. Make sure your project is still using Typescript 0.9.5
If all goes well, your project will build just fine again. I still don't know what the root cause of this is, but at least I can work again so I don't really care. We will be upgrading to the latest Typescript soon anyway.

Comments

Popular posts from this blog

Using self-signed certificates with QZ Tray

QZ Tray is an amazing printing tool for your browser. It allows your websites to print receipts including bar-codes using thermal printers. The only problem is that getting it all set up correctly can be a bit tricky especially if you want to suppress the untrusted dialogs/prompts that pop up when using the free version. Lucky for us, their solution is open source and from version 2.02 they allow developers to recompile the source with a self signed certificate that would suppress these popups. This is great if you cannot afford the $400 annual price tag, but getting it set up could be a painful process because they don't offer step by step instructions, and other articles on the subject are incomplete. I successfully managed to recompile the binaries using a self signed certificate and thought it might be useful if I provide step by step instructions on how to get it done. This guide will explain how to recompile the windows binaries only. But this should give you enou

Ethereum, the new BitCoin but better!

If you are like me you probably want to kick yourself for not getting on the BitCoin train back in the day when it was just taking off. Bitcoin has been making some good gains the last few months but there is a newer "Crypto Currency" making all the headlines these days... And this one is still affordable but growing at an incredible rate. This new blockchain is called Ethereum. Important: The purpose behind this article is not to try and convince you to buy or mine Ether, the idea is to bring it to your attention so that you don't sit there 5 years down the line thinking how much different your life could have been if you just invested a few dollars.  Its up to you to do more research to find out if this is something you are interested in or not. I personally would have loved to come across an article like this when BitCoin just took off.  At its simplest, Ethereum is an open software platform based on blockchain technology that enables develo

How to update NuGet Package Manager (NPM) in Visual Studio

How to update your NuGet package manager in Visual Studio. Follow these steps to update NPM in Visual Studio: Click Tools -> Extensions And Updates Select " Updates"  on the left, and then "Visual Studio Gallery" Select NuGet Package Manager  and click Update Accept the agreement NuGet Package Manager is now successfully updated