Property 'utilities' does not exist in type 'Container'

it's just my day of getting back to coding after about a year in corporate work and I've been scratching my head for hours now why it cannot utilize @sapphire/plugin-utilities-store on the types. I don't know if using bun caused this issue, or I may have forgotten something. I tried injecting db to the container, it works. I just don't know for utilities (and probably other internal injections by other native sapphire packages). Thanks.
Solution:
Did you check out the readme? It's pretty thorough. https://sapphirejs.dev/docs/Documentation/api-plugins/@sapphire/plugin-utilities-store/ If yes then please describe excarly what problem you're facing....
Sapphire Framework
index | Sapphire
Sapphire Logo
Jump to solution
3 Replies
Solution
Favna
Favna4d ago
Did you check out the readme? It's pretty thorough. https://sapphirejs.dev/docs/Documentation/api-plugins/@sapphire/plugin-utilities-store/ If yes then please describe excarly what problem you're facing.
Sapphire Framework
index | Sapphire
Sapphire Logo
WhacK
WhacK4d ago
I get that error when I forget to tell TS that I’ve changed the structure. The instructions are in the guide
module Container {
utilities: <type here>

}
module Container {
utilities: <type here>

}
WhacK
WhacK4d ago
Sapphire Framework
Using and extending container | Sapphire
The container is a way in which Sapphire achieves Dependency Injection ↗️. This is a very useful feature, since

Did you find this page helpful?