nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.53k stars 179 forks source link

Add line to `metro.config.js` suggested for Expo monorepos #336

Closed derek-primumco closed 1 year ago

derek-primumco commented 1 year ago

Thanks for the nice library! I'm making an issue to remind myself to submit a PR adding a line to the metro.config.js. This was necessary for support when adding a second Next.js library to the same monorepo using one of the Solito starter packages.

apps/expo/metro.config.js

// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
config.resolver.disableHierarchicalLookup = true;
nandorojo commented 1 year ago

PR welcome