1

i got problem with Pusher when integrating with typescript, ts says that This expression is not constructable. Type 'typeof Pusher' has no construct signatures

as shown

griffins
  • 7,079
  • 4
  • 29
  • 54
Marek Micuda
  • 11
  • 1
  • 2
  • Hi and welcome to Stack Overflow! To improve your experience, read [how to ask](https://stackoverflow.com/help/how-to-ask) an [on-topic](https://stackoverflow.com/help/on-topic) question. You should also take a look at the [question checklist](https://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist) and [how to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). To lean more about how Stack Overflow works, [take the tour](https://stackoverflow.com/tour). – jsadev.net Nov 15 '19 at 12:04

1 Answers1

3

One suggestion here didn't work for me, but this one did.

Instead of

new Pusher(

use

new Pusher.default(