kient icon indicating copy to clipboard operation
kient copied to clipboard

Import module blocking operation

Open flameoflust69 opened this issue 1 year ago • 2 comments

Hi, I tried to wrap Kient into a class and noticed ctrl+c wasn't working. Then I made a small check, and it was the import part blocking the operation. Consider this example

import { Events, Kient } from 'kient';

setTimeout(() => {
    console.log("hello world");
}, 10000);

If we trigger ctrl+c before the timeout is done, it doesn't work

If we call create it doesnt block the operation:

import { Events, Kient } from 'kient';

const client = await Kient.create()

setTimeout(() => {
    console.log("hello world");
}, 10000);

flameoflust69 avatar Apr 13 '24 11:04 flameoflust69

I don't seem to have this issue in my environment, and I can't see why just the import statement would affect anything here.

Would you be able to share your environment?

zSoulweaver avatar Apr 15 '24 11:04 zSoulweaver

Maybe its windows problem, maybe something wrong with my env . Windows 23H2, node v18.19.0

flameoflust69 avatar Apr 16 '24 13:04 flameoflust69