Select Menu Listener Fails To Register

Hello, I'm trying to implement a Select Menu Listener and get an error that a compatible class export cannot be found. I've copy-pasted the code exactly from the framework documentation/example and still receive the error. My file tree: src - listeners - interaction-handlers - SelectMenuListener.ts I'm using: TypeScript Sapphire v5.0.6 My sapphirerrc.json, if it's helpful:
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "commands",
"listeners": "listeners",
"preconditions": "preconditions",
"interaction-handlers": "interaction-handlers",
"routes": "routes"
},
"customFileTemplates": {
"enabled": false,
"location": ""
}
}
{
"projectLanguage": "ts",
"locations": {
"base": "src",
"arguments": "arguments",
"commands": "commands",
"listeners": "listeners",
"preconditions": "preconditions",
"interaction-handlers": "interaction-handlers",
"routes": "routes"
},
"customFileTemplates": {
"enabled": false,
"location": ""
}
}
I've searched around in the Discord and found this happened to others, but the solutions suggested don't seem to work for me. My package.json seems to be setup properly - everything else in the codebase works and registers - e.g my on message listeners and on command listeners, all commands register fine, etc. For what it's worth, I'm working in an app that I'm converting from JS to TypeScript on the Sapphire Framework. No other converted to TS files are having an issue. I feel like it's something obvious I'm missing, not sure what, but would love some assistance
Sapphire Framework
Select Menus | Sapphire
Select menus are components that let you...select values (name speaks for itself doesn't it 😄). You can configure them
Solution:
Nvm! I see it should be it's own folder, as mentioned in the forum post here: https://ptb.discord.com/channels/737141877803057244/1200406268435759176/1200407647694884965
Jump to solution
1 Reply
Solution
fenix
fenix4mo ago
Nvm! I see it should be it's own folder, as mentioned in the forum post here: https://ptb.discord.com/channels/737141877803057244/1200406268435759176/1200407647694884965