Module not found if installed in a parent folder package.json
#13979
Labels
Resolution: Locked
This issue was locked by the bot.
package.json
#13979
Description
I have a project with more than one package and I want to be able to install a set of dependencies for all the packages. For that I have defined the following project structure:
I want to do something like add
lodash
in themainfolder
package.json
and I want to be able to access to it inindex.js
of thereact-native-app
without add it to thepackage.json
inside thereact-native-app
folder. AFAIK it should work, and for the error log, the packager search in those directories, but it does not find them.I am getting the following error in the app screen:
I have confirmed that the module is installed in the parent
node_modules
folder but the packager is not able to find it. Any thoughts on how to fix this? Am I missing something?Additional Information
The text was updated successfully, but these errors were encountered: