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:
- Install Typescript 1.0
- 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)
- 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
Post a Comment