metro
metro copied to clipboard
Bug: resolver.extraNodeModules, resolver.nodeModulesPaths don't take effect
Do you want to request a feature or report a bug? report a bug
What is the current behavior? resolver.extraNodeModules, resolver.nodeModulesPaths don't take effect. Folders outside of haste map are not searched even I use the two directives.
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install
and yarn test
.
https://github.com/summer-wu/metro-resolver-bug
What is the expected behavior? Make those directives effective even the folder outside of watchFolders. Or make it effective.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
yarn 1.22.17
node v12.22.8
npm v6.14.15
Mac OS
uname -a : Darwin hostname 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin
Metro config can be found in https://github.com/summer-wu/metro-resolver-bug