#cant declare container items

1 messages · Page 1 of 1 (latest)

glass marsh
#

cannot declare prisma as a child of container

jolly caveBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

glass marsh
#

i fixed the first issue but now i am getting many errors

toxic igloo
#

what package manager are you using?

Also try setting typescript to ~5.4.5, mind the tilde

glass marsh
#

how come you need to downgrade ts version

toxic igloo
#

TS introduced breaking changes in 5.5 rolling_eyes

glass marsh
#

oh okay

#

what package manager does sapphire recommend

toxic igloo
#

whatever really but for pnpm you have to

naive shoalBOT
#

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/*
glass marsh
#

oh okay

toxic igloo
#

yes

glass marsh
#

okay thanks