Closed Flpph closed 5 years ago
I have a similar problem preventing me from logging in (related to presumably the websocket they are using), i'm opening a new issue as it is not the same exact error
tmi.js
depends on ws@1.0.1
which lists bufferutils@1.2.x
as a devDependency
. What I am seeing is that when tmi.js
is co-located in a project with another websockets implementation that picks up a newer bufferutils
(the API has changed significantly over the years) then it does not install the bufferutils
from devDependency
but will allow ws
to resolve the newer bufferutils
. This will fail. The only options I see are to remove any other websocket dependent library from your project or to upgrade ws
in tmi.js
to a newer version.
It looks like dependencies were updated on master but not yet published. Try:
npm i --save git+https://git@github.com/tmijs/tmi.js
Nevermind, it looks like the dependency upgrade has been reverted: https://github.com/tmijs/tmi.js/commit/ca3f16a0eb66ea76fe76ebc3e703fa78507f001a
Too bad. It was working for my use case. @AlcaDesign what is the problem with the latest upgrade? Am willing to help....
I could not get the tests to pass with those dependencies. No matter what I tried I couldn't figure it out. It was a mistake to push it to Github so I reverted it. You can still get the code at that commit if you wish.
npm install https://github.com/tmijs/tmi.js#4dcfa551
I believe.
If you can correctly update the dependencies and have the tests pass, I can publish it.
Worked after this:
npm install https://github.com/tmijs/tmi.js#4dcfa551
@AlcaDesign Submitted pull request for dependency update of ws only. All tests pass. Thanks in advance
Actual behaviour:
Can't connect to the server
Expected behaviour:
To log in
Error log:
Server configuration