hilleer/kill-port-process

TypeError: killPortProcess is not a function

Closed this issue ยท 4 comments

The module isn't working as expected when attempting use, even when running any of the examples.

Tried console logging to see what's there under the hood.
console.log(killPortProcess)
returns { default: [Function: default_1] }

@hilleer , please look into this. For now, I have downgraded to 0.0.4(As my use is only programmatic) and it is working fine.

@bloom510 @stagefright5 Ok, I will look into this asap.

Can you share what versions of node you are using?

@bloom510 @stagefright5 Ok, I will look into this asap.

Can you share what versions of node you are using?

node version is 10 (latest LTS).

This issue should be resolved in latest release (version 2.0.0), based on those changes: https://github.com/hilleer/kill-port-process/pull/10/files.

Please note that there is no more a default export - instead you should import it like: const { killPortProcess } = require('kill-port-process');

Please let me know if you still experience any issues @stagefright5 @bloom510