I\'m working in typescript 1.5 in visual studio. I have a main class called app.ts, and another called FizzBuzzManager.ts. I can\'t figure out what is wrong with this code,
This error message means that [Class] is not initialized by the time a call to its constructor is made.
Unlike functions, classes are not “hoisted” to the top of the scope they are declared in. Whenever code uses a class that is declared later (i.e. down below in the file), this error appears.
Solution: reorganize your code so that call sites for a class appear below that class' definition in the source code.