Nemokosch
Explore posts from serversDIAdiscord.js - Imagine a boo! 👻
•Created by Nemokosch on 3/2/2024 in #djs-voice
Why does @discordjs/opus only build properly with yarn?
Hello,
I'm not sure how much this is an "issue" because I mostly used yarn anyway but I noticed when I tried to switch to Bun that neither with Bun's built-in package manager, nor with npm, @discordjs/opus is not really built, and I get a runtime error repording that the built version is missing, along with opusscript and node-opus.
Is there something weird going on or is this a known thing? I really wonder because unlike npm, yarn has a "linking stage" for a couple of my native dependencies so it seems like npm just downright doesn't do something necessary.
63 replies
DIAdiscord.js - Imagine a boo! 👻
•Created by Nemokosch on 8/17/2023 in #djs-questions
Typescript build failure
Hello,
using Typescript 5.1.6 and a one-liner index.ts that imports (version 14.12.1) discord.js, I get two compiler errors from the typings of the library:
version 14.11.0 had no similar problem.
Is there something I should check about the environment? Is this a known problem?
3 replies