Packages problem
Hello Hello, I manually installed the packages using the commands from the guide, but when I extended the container and declared "@sapphire/pieces" it said that I don't have that package installed, does it come with /framework or not?
Solution:Jump to solution
When using pnpm you have to make sure that you have the
shamefully-hoist
and public-hoist-pattern
are set correctly in your .npmrc
file.
This is because pnpm will not hoist any dependencies by default and that poses a problem with how Sapphire works with module augmentation and loading files from the filesystem.
Add this to your .npmrc
file:...13 Replies
It does. I'm guessing "it" is eslint plugin import?
I don't have eslint
then please show not tell. Show the code, show the error
it's not the error, it's just that "@sapphire/framework" didn't installed /pieces automatically
i had to did it manually
is that normal or
are you using pnpm?
mhm
Solution
When using pnpm you have to make sure that you have the
shamefully-hoist
and public-hoist-pattern
are set correctly in your .npmrc
file.
This is because pnpm will not hoist any dependencies by default and that poses a problem with how Sapphire works with module augmentation and loading files from the filesystem.
Add this to your .npmrc
file:
.npmrc file locally?
in root of a bot
yes create a file
@Boomeravna do you know how to handle custom arguments errors
i dont see it on guide
add a listener for the Events.CommandError event https://sapphirejs.dev/docs/Guide/listeners/creating-your-own-listeners
Sapphire Framework
Creating your own listeners | Sapphire
Similar to what you learned in both Creating Commands and [Creating
so should i delete everything and install again everything
after doing that
@Boomeravna
Yes