Closed YpsilonTM closed 9 months ago
Nevermind i thought it was just ignorable with: "skipLibCheck": true,
But it breaks al typescript types for me. I was comparing with my previous working version and there EventEmitter3 was on V4. Somehow V5 broke stuff for me.
So it actually not fixed.
in node_modules\obs-websocket-js\dist\base.d.ts
adjusting
import EventEmitter from 'eventemitter3';
to
import { EventEmitter } from 'eventemitter3';
I saw its exported as default and named. So gave that a try still don't get why it then works.
fixed all the typescript complaining for me. And I have my types back.
in
node_modules\obs-websocket-js\dist\base.d.ts
adjusting
import EventEmitter from 'eventemitter3';
to
import { EventEmitter } from 'eventemitter3';
I saw its exported as default and named. So gave that a try still don't get why it then works.
fixed all the typescript complaining for me. And I have my types back.
This is already fixed in the repo but has not been published yet.
Ok thank you maybe one day I will see the next release.
@Hoishin is it possible to get this published? it is quite annoying.
@mint-dewit I'm not maintainer of this repo/package
Published 5.0.4 which includes #333
So this is my code and I keep getting the error that EventEmitter cannot be used as a type. I remove my node modules folder did a clean install. Anyone have a clue why it keeps complaining about that?
The Error:
Versions Used: