Command.LoaderContext does not exist

I have been updating my code to the new versions recently released, and Command.Context has been deprecated, but Command.LoaderContext does not exist. Listener.LoaderContext does exist however. "@sapphire/framework": "^4.8.2",
Solution:
Mb, Command is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire
Jump to solution
9 Replies
iaqi
iaqi•13mo ago
maybe try restart your ide
disclosuure
disclosuureOP•13mo ago
That did not work
Favna
Favna•13mo ago
1. If you have @sapphire/pieces in your dependencies, remove it 2. Remove your node_modules as well as yarn.lock / pnpm-lock.yaml / package-lock.json and reinstall
disclosuure
disclosuureOP•13mo ago
This did not work. @sapphire/pieces was not in my deps but I tried a fresh reinstall anyway.
disclosuure
disclosuureOP•13mo ago
It seems like LoadContext is not in the namespace? https://ss.clanware.org/tkWqU3i2.png https://ss.clanware.org/C2exJPct.png
Solution
disclosuure
disclosuure•13mo ago
Mb, Command is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire
Favna
Favna•13mo ago
@! naeko.moe update your plugin pls
kyra
kyra•13mo ago
I made a PR updating the plugin, but I have been focusing on other tasks 😅
Sawako
Sawako•13mo ago
Want results from more Discord servers?
Add your server