t3-turbo packages

How do I install packages for expo and/or nextjs? I'm using pnpm. I tried to do pnpm i [package] -w then tried to pnpm expo install [package] inside the expo folder but no luck Unable to resolve "@react-navigation/native" from "..\..\node_modules\@react-navigation\native-stack\src\navigators\createNativeStackNavigator.tsx"
9 Replies
Quatre
Quatre2y ago
Have you found out what's happening? tried to install the navigation today and the whole project got messed up🐵
elpupper
elpupper2y ago
yep if you go into the expo dir make sure u undo everythin u did start from fresh if you have to then go to expo dir and run these
npx expo install @react-navigation/native-stack
npx expo install @react-navigation/stack
npx install react-native-screens react-native-safe-area-context
npx expo install @react-navigation/native-stack
npx expo install @react-navigation/stack
npx install react-native-screens react-native-safe-area-context
then go to root dir and do pnpm i
julius
julius2y ago
from root, just
pnpm --filter expo add <package>
pnpm --filter expo add <package>
Quatre
Quatre2y ago
Thanks brothers Maybe this info should be included in GitHub repo readme? (For beginners like me)
elpupper
elpupper2y ago
i think so too thats a better way thanks for this
julius
julius2y ago
Its always a fine balance on how much to put in a readme and what should be considered prerequisite knowledge
elpupper
elpupper2y ago
maybe but i think the pnpm db-push is more common knowledge thn pnpm --filter expo add <package>
julius
julius2y ago
a) The db:push is a turbo command that euns push and generate in parallel b) its necessary to push to get the app running. Adding more deps arent
elpupper
elpupper2y ago
fair enough
Want results from more Discord servers?
Add your server