Build Error when compiling latest version of discord.js

Hi, I've tried googling for this but I've found nothing. I've tried to compile discord.js to run on a AWS lambda (which I've done before) with the latest version but I'm getting loader & module not found errors. I have node v18.16.0 and I've installed typescript 5.2.2 but I still get the same errors. I've attached a picture of the issue I encounter.
No description
7 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
snowl
snowlOP15mo ago
Discord.js version: 14.13.0 Node version: v18.16.0
ShompiFlen
ShompiFlen15mo ago
discord.js doesn't work with webpack
snowl
snowlOP15mo ago
ok, thats good to know. it works with version 12.5.3 at least so i'll use that 🙂 ty
Nullified
Nullified15mo ago
What exactly do you use webpack for? There's other compilers that do work and allow for similar functionality
snowl
snowlOP15mo ago
I use it to compile and run a AWS lambda that triggers on certain lambda commands. I just provide an index.js and then it runs my stuff for me
Nullified
Nullified15mo ago
I'm also pretty sure babel works with djs iirc, there should be a plugin for it there too
Want results from more Discord servers?
Add your server