Closed tascord closed 3 years ago
Use
node --trace-uncaught ...
to show where the exception was thrown
Can you provide a stacktrace?
this.handler = new opusscript_native.OpusScriptHandler(this.samplingRate, this.channels, this.application); ^
TypeError: opusscript_native.OpusScriptHandler is not a constructor
at new OpusScript (C:\Users\jakem\Desktop\musicbot\node_modules\opusscript\index.js:47:20)
at new OpusStream (C:\Users\jakem\Desktop\musicbot\node_modules\prism-media\src\opus\Opus.js:53:20)
at new Encoder (C:\Users\jakem\Desktop\musicbot\node_modules\prism-media\src\opus\Opus.js:149:5)
at AudioPlayer.playPCMStream (C:\Users\jakem\Desktop\musicbot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:58:34)
at AudioPlayer.playUnknown (C:\Users\jakem\Desktop\musicbot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:53:17)
at VoiceConnection.play (C:\Users\jakem\Desktop\musicbot\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28)
at playSong (C:\Users\jakem\Desktop\musicbot\index.js:79:47)
at Client.
Your install seems broken. Have you tried deleting node_modules and reinstalling? And make sure your Node.js version is up-to-date.
Yes
On Fri, 29 Jan 2021 at 09:16, abal notifications@github.com wrote:
Your install seems broken. Have you tried deleting node_modules and reinstalling? And make sure your Node.js version is up-to-date.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abalabahaha/opusscript/issues/19#issuecomment-769681882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQU474VXPAHV5F2YRH2VIDS4J4FNANCNFSM4V5DLFXQ .
Sorry, this fell through the cracks in my inbox. 0.0.8 gets rid of the stacktrace hijacking, so you should be able to figure out where the indexOf()
error comes from now.
@jakemarley just realized you're not OP... 0.0.8 was released and might fix this, open a new issue if it still happens on 0.0.8, since this seems unrelated to the original issue.
Hey! After only having good experiences with opusscript i've had some horrific error pop up that i am unable to decode.
Good luck.
The error