app-module-path-node icon indicating copy to clipboard operation
app-module-path-node copied to clipboard

Cannot add path '../modules'?

Open blaasvaer opened this issue 6 years ago • 2 comments

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');

blaasvaer avatar Jun 18 '18 11:06 blaasvaer

looking also for this

bonesoul avatar Nov 11 '20 09:11 bonesoul

Have you found a solution?

Flojolomo avatar Aug 30 '22 20:08 Flojolomo