Skip to content

TypeError: Watchdog is not a constructor #18

Open
@RobinGFT

Description

@RobinGFT

Hi,
I wanted to test your module, but unexpectedly it won't function.
By creating a new instance of the class 'Watchdog' with

var Watchdog = require('watchdog');
const timeout = 5000;
const dog = new Watchdog(timeout);

I get the following Error: TypeError: Watchdog is not a constructor

Even by testing it with RunKit directly from the npm page (https://npm.runkit.com/watchdog) the error appears.

Maybe the problem appears cause of the mixing of typescript module and JavaScript Code...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions