app-module-path-node
app-module-path-node copied to clipboard
Simple module to add additional directories to the Node module search for top-level app modules
I'm using this lib for addressing modules in my project but I lose Intellisense in vscode editor. anyone know how to handle this issue?
Hi in my package.json I have "type": "module" ``` { "type": "module", "main": "./server/main.js", "scripts": { "hello": "echo \"Hello\" && exit 1", "debug": "ndb main.js", "dev": "nodemon main.js", "start": "node...
Jest
it doesn't work when running jest. any ideas?
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...
how can i use it with [zeit/pkj](https://github.com/zeit/pkg)? it gives error: can not find module ....
This works ```js require('app-module-path').addPath(__dirname); const models = require('app/models'); models.User.findOne({ where: { id: 1 } }).then(user => { console.log(user.toJSON()); return user; }); ``` The following snippet not working ```js require('app-module-path').addPath(__dirname); import...
How about configuring variables and using them in paths? That would be less dynamic and therefore has more of a chance of working in client-side settings, too. For example: ```js...
Hi, I'm trying to use this module in my application. it is working fine. Now, i'm trying to make a feature of my application as a module and try to...
Because of reasons i often prefer to unshift the module path array, rather than push onto as is the default behaviour since v2. Perhaps one could pass an options, ie...