#Why does the library export an object twice?
10 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
Yea this isn't discord.js related at all. You're looking at the emitted JavaScript
Just how TypeScript works
ooh so it's compiled from typescript
okay thanks
i thought it was written in native JS
You can Google it
https://stackoverflow.com/questions/70543122/changing-from-typescript-3-to-4-what-is-purpose-of-new-export-somename-void-0
I switched from typescript 3 to 4 and there are some odd-looking changes in the output I'd like to understand.
The top of most JS output files has new inserted exports.name = void 0 code:
"use
i googled the wrong thing so it didnt answer my question: https://stackoverflow.com/questions/7452341/what-does-void-0-mean
I'm not really sure myself but it looks like circular import shenanigans or whatever