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.
7 Replies
- 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!Discord.js version: 14.13.0
Node version: v18.16.0
discord.js doesn't work with webpack
ok, thats good to know. it works with version 12.5.3 at least so i'll use that 🙂 ty
What exactly do you use webpack for? There's other compilers that do work and allow for similar functionality
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
I'm also pretty sure babel works with djs iirc, there should be a plugin for it there too