Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm test fail : Module 'materialDatePicker' is not available! You either misspelled the module name or forgot to load it. #47

Closed
alexliubj opened this issue Oct 7, 2015 · 2 comments

Comments

@alexliubj
Copy link

The date picker works but npm test failed due to the following reason.

PhantomJS 1.9.8 (Mac OS X 0.0.0) Service: Template should do something FAILED
Error: [$injector:modulerr] Failed to instantiate module flynnFormApp due to:
Error: [$injector:modulerr] Failed to instantiate module materialDatePicker due to:
Error: [$injector:nomod] Module 'materialDatePicker' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=materialDatePicker
at /Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:1960
at ensure (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:1882)
at module (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:2210)
at /Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:4362
at forEach (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:336)
at loadModules (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:4388)
at /Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:4363
at forEach (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:336)
at loadModules (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:4388)
at createInjector (/Users/alexliu/Flynn-Forms/client/bower_components/angular/angular.js:4272)
at workFn (/Users/alexliu/Flynn-Forms/client/bower_components/angular-mocks/angular-mocks.js:2393)

@mobinni
Copy link
Owner

mobinni commented Oct 7, 2015

Huh, how are you loading the dependency, and how are you testing it?
I need a bit more context

@alexliubj
Copy link
Author

I'm using the regular with as same as you mentioned in usage of guideline.

@mobinni mobinni closed this as completed Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants