thirdweb-example / expo-starter

Starter kit to build with Expo and thirdweb without additional initial configuration.
16 stars 6 forks source link

Error running: npx thirdweb create app --expo #8

Closed sparkle666 closed 1 month ago

sparkle666 commented 3 months ago

@joaquim-verges

Need to install the following packages: thirdweb@5.31.0 Ok to proceed? (y) y npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: thirdweb@5.29.0 npm ERR! node_modules/thirdweb npm ERR! thirdweb@"5.31.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! thirdweb@"5.31.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@18.2.0 npm ERR! node_modules/react npm ERR! peer react@"18.2.0" from react-native@0.74.2 npm ERR! node_modules/react-native npm ERR! peerOptional react-native@">=0.70" from thirdweb@5.31.0 npm ERR! node_modules/thirdweb npm ERR! thirdweb@"5.31.0" from the root project npm ERR! peer react-native@"*" from @coinbase/wallet-mobile-sdk@1.0.13 npm ERR! node_modules/@coinbase/wallet-mobile-sdk npm ERR! peerOptional @coinbase/wallet-mobile-sdk@"^1" from thirdweb@5.31.0 npm ERR! node_modules/thirdweb npm ERR! thirdweb@"5.31.0" from the root project npm ERR! 2 more (@react-native-async-storage/async-storage, react-native-aes-gcm-crypto) npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /home/chinemerem/.npm/_logs/2024-06-30T15_02_07_301Z-eresolve-report.txt

joaquim-verges commented 3 months ago

can you try this?

npm config -g set legacy-peer-deps true

then run npx thirdweb create again

sparkle666 commented 3 months ago

Yeah it works but expo returned: IMG_20240701_072930

So removed the --expo and it worked and had to choose which dev tool I wanted which is react native.