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•7mo ago
maybe try restart your ide
disclosuure
disclosuure•7mo ago
That did not work
Favna
Favna•7mo 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
disclosuure•7mo ago
This did not work. @sapphire/pieces was not in my deps but I tried a fresh reinstall anyway.
disclosuure
disclosuure•7mo 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•7mo ago
Mb, Command is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire
Favna
Favna•7mo ago
@! naeko.moe update your plugin pls
kyra
kyra•7mo ago
I made a PR updating the plugin, but I have been focusing on other tasks 😅
Sawako
Sawako•7mo ago