Closed nicoduesing closed 1 year ago
Also... tsup 6.2.1? tsup is on at least version 8 by now. At a first glance, this is probably an issue with a configuration of yours of tsup rather than this being a discord.js issue.
Ah, sorry, I had an config in a parent directory, that was used. I found the problem. The error was caused by target: "node20"
. I'm using tsup 6.x because newer versions changed something in the way it bundles the dependencies, so it is not allowing to bundle everything into a single file.
Which package is this bug report for?
discord.js
Issue description
The following error is shown on running the index.ts after building with tsup:
To reproduce this bug, create a project like the following:
index.ts
package.json
The content of the files is the following:
index.ts
:package.json
:Run the following commands:
yarn install
yarn run build
node dist/index.js
The last command returns the error above.
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
No Intents
I have tested this issue on a development release
No response