Augmenting Container Failed
Idk why but this suddenly stopped working after i installed the following packages
@sapphire/async-queue @sapphire/fetch @sapphire/pieces @sapphire/discord.js-utilities
Everything was working fine before but i think after i installed @sapphire/pieces
it broke. I tried reinstallig the node_modules and reloading vscode but nothing seems to work14 Replies
And PrismaClient is getting imported properly
And the other augments work fine
@oreotm. I think it's the best idea to not install
@sapphire/pieces
directly. It introduces conflicts such as what you're experiencing. Everything you'd need from pieces is reexported from /framework
.You need to
import '@sapphire/pieces';
at the top of the file, it's a requirement for augmenting, otherwise it's declarating which in turn replaces the types.I don't know if that would be the problem, because it worked before they added the new packages (not changing the file), right?
I tried that and it doesnt seem to work
heres my augments file
It looks correct
Then it may be due to duplicated
@sapphire/pieces
version, are you using npm or yarn?yarn v3
should i use npm?
No, yarn
Solution
Run
yarn dedupe
Worked