app-module-path-node
app-module-path-node copied to clipboard
Cannot add path '../modules'?
I need to add the custom resolve path '../modules' to node but can't seem to do so?
What am I missing in using this module correct?
Below 'router' is called from a module 'app/index.js' and I have a modules folder for shared modules a level up.
require('app-module-path').addPath('../modules');
const Router = require('router');
looking also for this
Have you found a solution?