Skip to content

Commit 1455fa9

Browse files
committed
fix(template): disable hierarchical lookup in Metro config to fix module resolution
1 parent d02ae54 commit 1455fa9

File tree

1 file changed

+1
-0
lines changed
  • packages/create-react-native-library/templates/expo-library/example

1 file changed

+1
-0
lines changed

packages/create-react-native-library/templates/expo-library/example/metro.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ const config = withMetroConfig(getDefaultConfig(__dirname), {
1616
});
1717

1818
config.resolver.unstable_enablePackageExports = true;
19+
config.resolver.disableHierarchicalLookup = true;
1920

2021
module.exports = config;

0 commit comments

Comments
 (0)