Skip to content

Commit

Permalink
fix: dependency issues breaking metro config
Browse files Browse the repository at this point in the history
  • Loading branch information
iykazrji committed Dec 17, 2024
1 parent 60df9a1 commit 6cc8ae0
Show file tree
Hide file tree
Showing 2 changed files with 7,066 additions and 8,758 deletions.
3 changes: 3 additions & 0 deletions examples/react-native-expo-example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ config.resolver.nodeModulesPaths = [
path.resolve(monorepoRoot, "node_modules"),
];

// Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
config.resolver.disableHierarchicalLookup = true;

config.resolver.extraNodeModules = {
...config.resolver.extraNodeModules,
...require("node-libs-react-native"),
Expand Down
Loading

0 comments on commit 6cc8ae0

Please sign in to comment.