I can't seem to add resolve deep modules (i.e., module names containing "/") with metro.config
inside a React Native project, while all modules with simple names work. Do you know how I can bypass this?
Moreover, using resolveRequest()
isn't called so I can debug from there.
resolver: {
extraNodeModules: {
'foo': path.resolve(__dirname, '../my/path'), // works
'fs/promises': path.resolve(__dirname, '../my/path'), // doesn't work
},
},