Bot no longer runs after conversion to Typescript

I have converted by bot to typescript from ESM JS, now it logs in successfully but then none of the commands (message and slash) execute, console output:
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
Code: https://github.com/cosigyn/Clanware-V3/tree/typescript/src - Which version of @sapphire/framework are you using? 4.2.2 - What's your file/folder structure? attached - Did you use the CLI to generate your bot? no - What's your "main" property in package.json? src/index.ts - Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts? attached - In case you are using version 3.0.0 or higher of @sapphire/framework, and your problem related to message commands, did you add loadMessageCommandListeners to your SapphireClient options? yes Is there anything I could be missing?
Solution:
change What's your "main" property in package.json? src/index.ts to dist/index.js
Jump to solution
3 Replies
Solution
Favna
Favna13mo ago
change What's your "main" property in package.json? src/index.ts to dist/index.js
disclosuure
disclosuure13mo ago
That worked, thanks!
Sawako
Sawako13mo ago
+