Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use opus decoder despite having @discordjs/opus and opusscript installed #119

Open
PawZawDev opened this issue May 24, 2024 · 1 comment

Comments

@PawZawDev
Copy link

Issue:

Can't use opus decoder despite having @discordjs/opus and opusscript installed

Error: Error: Cannot find module '@discordjs/opus'
Error: Cannot find module 'node-opus'
Error: Cannot find module 'opusscript'

Steps to reproduce:

  • install @discordjs/opus and opusscript (verified by using require in script or node console)
  • install prism-media
  • follow example usage

the demuxer works, but decoder throws mentioned error

Further details:

  • Operating System: Windows 11
  • Node.js version: 18.17.1
  • Prism-media version: 1.3.5
@valoricDe
Copy link

Are you using ES6 import export type: "module" in your project, package.json?
I guess the problem lies within

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants