noderaider / redux-idle-monitor

A Redux component to schedule events at stages of user idleness across multiple browser tabs.
https://noderaider.github.io/redux-idle-monitor/
MIT License
105 stars 9 forks source link

Get lib issues while trying to use the module #6

Closed salujaharkirat closed 7 years ago

salujaharkirat commented 7 years ago

Getting following error while trying to use this package in my project:-

ERROR in ./~/redux-idle-monitor/lib/context.js
Module not found: Error: Cannot resolve module 'babel-runtime/core-js/json/stringify' in /Users/aragorn/taxo/node_modules/redux-idle-monitor/lib
 @ ./~/redux-idle-monitor/lib/context.js 7:17-64

ERROR in ./~/redux-idle-monitor/lib/context.js
Module not found: Error: Cannot resolve module 'babel-runtime/core-js/object/assign' in /Users/aragorn/taxo/node_modules/redux-idle-monitor/lib
 @ ./~/redux-idle-monitor/lib/context.js 11:14-60

ERROR in ./~/redux-idle-monitor/lib/reducer.js
Module not found: Error: Cannot resolve module 'babel-runtime/core-js/object/assign' in /Users/aragorn/taxo/node_modules/redux-idle-monitor/lib
 @ ./~/redux-idle-monitor/lib/reducer.js 8:14-60

ERROR in ./~/redux-idle-monitor/lib/middleware.js
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/toConsumableArray' in /Users/aragorn/taxo/node_modules/redux-idle-monitor/lib
 @ ./~/redux-idle-monitor/lib/middleware.js 8:26-76

ERROR in ./~/redux-idle-monitor/lib/actions.js
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/typeof' in /Users/aragorn/taxo/node_modules/redux-idle-monitor/lib
 @ ./~/redux-idle-monitor/lib/actions.js 8:15-54

Also looks like its quite heavy, my app size increase by ~0.3mb after adding this. Can you please help me on this?

cchamberlain commented 7 years ago

Thanks for reporting!

Can you type the following commands from your project root and paste the output?

node --version npm -v npm ls redux-idle-monitor npm ls babel-cli npm ls babel-runtime

salujaharkirat commented 7 years ago

babel-runtime was not installed, shouldnt it be dependency in redux-idle-monitor. I tried installing babel-runtime , after which it worked fine. But still package is quite heavy :)

cchamberlain commented 7 years ago

Good catch, published v0.4.5 with updated dependencies. I've opened a new issue regarding package size, I should be able to shave off some bloat in near future.