fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

cannot find module #158

Closed jacksoncharles closed 5 years ago

jacksoncharles commented 8 years ago

When I install this directive using NPM then try and require it with require('angular-daterangepicker') I always get "Cannot find module 'angular-daterangepicker'". I am new to node, forgive me if it is a simple mistake on my behalf however, I have a lot of other successfully loaded modules.

Thanks for your hard work.

skolsuper commented 8 years ago

:+1:

I think you probably just need a "main" key in package.json that points to your js/angular-daterangepicker.js distribution javascript file.