You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> node_modules/discord.js/src/client/BaseClient.js:3:29: error: Could not resolve "node:events" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time)
3 │ const EventEmitter = require('node:events');
╵ ~~~~~~~~~~~~~
```
The text was updated successfully, but these errors were encountered:
Esbuild (as wrapped by estrella) will try to include all imported libraries in the compiled bundle. Since node:events is a builtin of nodejs which doesn't live in your source code and doesn't live in node_modules, it will fail. The fix is to add node:events to the array you pass in the external option to build, which will exclude it from compilation.
The text was updated successfully, but these errors were encountered: