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

后端 未结 12 1384
清歌不尽
清歌不尽 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条回答
  •  忘掉有多难
    2021-01-17 08:33

    When migrating from plain ES6 / Node.js using module.exports/require() it often happens to me that I forget to remove the old module.exports = which also causes this error.

提交回复
热议问题