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

'Unknown provider' error #18

Closed
porjo opened this issue Mar 6, 2014 · 2 comments
Closed

'Unknown provider' error #18

porjo opened this issue Mar 6, 2014 · 2 comments

Comments

@porjo
Copy link

porjo commented Mar 6, 2014

When using directive as per the example e.g.

 <gravatar-image data-gravatar-email="email" data-gravatar-size="120" data-gravatar-rating="pg" data-gravatar-default="identicon" data-gravatar-secure="true" data-gravatar-css-class="btn btn-large"></gravatar-image>

I see the following error in the JS console:

Error: [$injector:unpr] Unknown provider: aProvider <- a <- gravatarImageService <- gravatarImageDirective
...

I've setup a Plunkr example here:
http://plnkr.co/edit/XAEANw?p=preview

I'm using AngularJS 1.2.13

@lavinjj
Copy link
Owner

lavinjj commented Mar 6, 2014

This also happens when you use the minified version in the sample project.

Looks like there is an issue with the yeoman generator's grunt uglify settings that is causing the minified code to not register the service. I will have to play with it a bit to find the correct settings and will update the grunt file accordingly.

lavinjj pushed a commit that referenced this issue Mar 6, 2014
…e was missing the minification array causing the service to not instantiate properly.
@lavinjj
Copy link
Owner

lavinjj commented Mar 6, 2014

Resolved with Release v1.3.2

@lavinjj lavinjj closed this as completed Mar 6, 2014
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