Why Does This Typescript Output “[Class] is not a constructor.”?

后端 未结 12 1265
清歌不尽
清歌不尽 2021-01-17 07:55

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,

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 08:49

    Which typescript version do you use?

    There is a Bug in tsc 1.8.10:

    https://github.com/Microsoft/TypeScript/issues/8910

提交回复
热议问题