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:Jump to solution
Mb,
Command
is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire9 Replies
maybe try restart your ide
That did not work
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 reinstallThis did not work. @sapphire/pieces was not in my deps but I tried a fresh reinstall anyway.
It seems like LoadContext is not in the namespace? https://ss.clanware.org/tkWqU3i2.png https://ss.clanware.org/C2exJPct.png
Solution
Mb,
Command
is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphire@! naeko.moe update your plugin pls
I made a PR updating the plugin, but I have been focusing on other tasks 😅