fenix
fenix
SIASapphire - Imagine a framework
Created by fenix on 2/11/2024 in #sapphire-support
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
4 replies