medikoo / memoizee

Complete memoize/cache solution for JavaScript
ISC License
1.73k stars 61 forks source link

Cannot find module 'event-emitter' #111

Closed perstromswe closed 4 years ago

perstromswe commented 4 years ago

When I try to run my app on azure windows I get:

Mon May 11 2020 18:18:23 GMT+0000 (Greenwich Mean Time): Application has thrown an uncaught exception and is terminated: Error: Cannot find module 'event-emitter' Require stack:

Maybe event-emitter should be replaced with something?

medikoo commented 4 years ago

@perstromswe Ensure to install your project with npm install. event emitter is listed as one of the project dependencies

perstromswe commented 4 years ago

I have run npm install (npm ci). The project has around 50 dependencies. If I remove the email-templates package which uses the memoizee pacakage, the app works in windows azure. Wierd since it works on my dev-machine. So it must be something windows-related.

medikoo commented 4 years ago

@perstromswe On windows npm should also work without issues.

I take it's some issue with your Azure setup, and you probably should seek help on some Azure forum.

I'm going to close this as it's definitely not a problem with memoizee