Closed
Description
As described in the browserify handbook you can use symlinks in the node_modules
folder to reference modules. This is mainly useful for preventing ../../../../
requires.
With a symlink setup from the project root setup like:
ln -s src/app node_modules/app
in any file in the project you can:
var app = require('app');
var somethingElse = require('app/lib/something-else');
However, the packager can't resolve them: Requiring unkonwn module "app"
.
Edit:
Check out this repo to easily reproduce the error above:
https://github.com/JaapRood/react-native-packager-symlink-bug