TS App does not attach event listeners once complied, works in dev
Hi, my application doesn't execute any event listeners in a compiled JS state, but works fine when booting into TS via nodemon.
I've tried multiple bot accounts with replicated permissions, inside and outside of docker containers, locally and deployed, but for some reason compiling the app to JS gets the app stuck after
ApplicationCommandRegistries
ApplicationCommandRegistries
INFO logs are fired. I also can't amend the
LogLevel
LogLevel
option on Sapphire instantiation.
Any advice or insight greatly welcome! This has been driving me mad
Solution
For anyone that stumbles upon this in future with similar symptoms (app booting, bot is registered online in discord but events not picked up) my solution was to update
package.json
package.json
's
main
main
parameter to an appropriate value against the compiled JS entrypoint - in my case