cant declare container items

cannot declare prisma as a child of container
No description
12 Replies
iaqi
iaqiOP3w ago
No description
iaqi
iaqiOP3w ago
i fixed the first issue but now i am getting many errors
Favna
Favna3w ago
what package manager are you using? Also try setting typescript to ~5.4.5, mind the tilde
iaqi
iaqiOP3w ago
i switched from pnpm to npm and that fixed the first issue how come you need to downgrade ts version
Favna
Favna3w ago
TS introduced breaking changes in 5.5 :rolling_eyes:
iaqi
iaqiOP3w ago
oh okay what package manager does sapphire recommend
Favna
Favna3w ago
whatever really but for pnpm you have to
Spinel
Spinel3w ago
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:
shamefully-hoist=true
public-hoist-pattern[]=@sapphire/*
shamefully-hoist=true
public-hoist-pattern[]=@sapphire/*
iaqi
iaqiOP3w ago
oh okay .npmrc in project directory?
Favna
Favna3w ago
yes
iaqi
iaqiOP3w ago
okay thanks
Favna
Favna3w ago
Settings (.npmrc) | pnpm
pnpm gets its configuration from the command line, environment variables, and
Want results from more Discord servers?
Add your server