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:
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:Jump to solution
change
What's your "main" property in package.json? src/index.ts
to dist/index.js
3 Replies
Solution
change
What's your "main" property in package.json? src/index.ts
to dist/index.js
That worked, thanks!
+