skonves / express-http-context

Get and set request-scoped context anywhere
MIT License
299 stars 26 forks source link

Cannot find module. #19

Open amaciver opened 6 years ago

amaciver commented 6 years ago

npm install --save express-http-router var httpContext = require('express-http-context'); npm start cannot find module

when I run node console, I can require the module fine. The folder in in my node_modules for the project.

Any ideas?

dalgleish commented 6 years ago

Are you are using webpack or some bundler that would interfere with how modules are loaded?

amaciver commented 6 years ago

no, I am not; using nodemon only. The strange thing is that some new packages that I load in are requiring fine, but this one is not. It's a puzzle.

On Wed, Aug 8, 2018 at 4:13 PM, Andrew notifications@github.com wrote:

Are you are using webpack or some bundler that would interfere with how modules are loaded?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/skonves/express-http-context/issues/19#issuecomment-411583353, or mute the thread https://github.com/notifications/unsubscribe-auth/AXz2lxDHtPkPwmnYZhVtkEYXIvVW6wMRks5uO3CvgaJpZM4V0n_4 .