Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

[$injector:unpr] Unknown provider: eProvider <- e <- uiSelectHeaderDirective after updating from 0.19.5 to 0.19.6 #1967

Closed
sibiraj-s opened this issue Apr 12, 2017 · 28 comments · Fixed by #1969

Comments

@sibiraj-s
Copy link

Bug description:

I updated from 0.19.5 to 0.19.6 today. I am getting the following error

angular.js?_dp=1491996177792:14525 Error: [$injector:unpr] Unknown provider: eProvider <- e <- uiSelectHeaderDirective
http://errors.angularjs.org/1.6.4/$injector/unpr?p0=eProvider%20%3C-%20e%20%3C-%20uiSelectHeaderDirective
    at angular.js?_dp=1491996177792:66
    at angular.js?_dp=1491996177792:4789
    at Object.getService [as get] (angular.js?_dp=1491996177792:4944)
    at angular.js?_dp=1491996177792:4794
    at getService (angular.js?_dp=1491996177792:4944)
    at injectionArgs (angular.js?_dp=1491996177792:4969)
    at Object.invoke (angular.js?_dp=1491996177792:4995)
    at angular.js?_dp=1491996177792:8110
    at forEach (angular.js?_dp=1491996177792:403)
    at Object.<anonymous> (angular.js?_dp=1491996177792:8108)

Is there any breaking changes made.

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Angular-1.6.4
Bootstrap-3.3.7
UI select- 0.19.6

@Jefiozie
Copy link
Contributor

Hi,

There are no breaking changes only a new feature where you can add header/ footer.
Could you post a example plunker? So that I can have a look?

@hochi-vivovii
Copy link

This very same issue happens on me when I was on 0.19.6 updating to 0.19.7.

A temporary solution is to fall back to 0.19.6

@Jefiozie
Copy link
Contributor

It is a problem in the new feature see footer

Same goes for the header. will make a fix for this.

@hochi-vivovii
Copy link

I made a patch,
please review this PR #1968

@Jefiozie
Copy link
Contributor

@hochi-vivovii thanks in the mean time I had made the changes also. Will close yours down it contains the dist/* files.

@Jefiozie
Copy link
Contributor

Reopen as this is not resolved yet.

@gpierrick
Copy link

Confirming I am getting the same issue

@zucker-rdrg
Copy link

Same issue ;/ patch version update breaks my app

@batista
Copy link

batista commented Apr 13, 2017

related issues? #1972 #1971 #1970

@hochi-vivovii
Copy link

@Jefiozie will there be a newer release to patch this? meanwhile do we just fall back to 0.19.6?

@Jefiozie
Copy link
Contributor

Jefiozie commented Apr 13, 2017

Yes i think this is best. Still looking for the best option to resolve all problems.
THinking about removing the complete tag but no sure if this will trigger npm etc. (pretty new to this all 😞)

@batista
Copy link

batista commented Apr 13, 2017

@Jefiozie to remove tag on npm use dist-tag in this case should be something like npm dist-tag rm ui-select 0.19.7.
I'm no npm expert though, so please get confirmation from an alternative source before running it.

for bower i have no idea if that's even possible.


UPDATE:
was reading on git user manual (after reading bower#994), under git-tag/on_re_tagging`:

What should you do when you tag a wrong commit and you would want to re-tag?

If you never pushed anything out, just re-tag it. Use "-f" to replace the old one. And you’re done.

But if you have pushed things out (or others could just read your repository directly), then others will have already seen the old tag. In that case you can do one of two things:

  1. The sane thing. Just admit you screwed up, and use a different name. Others have already seen one tag-name, and if you keep the same name, you may be in the situation that two people both have "version X", but they actually have different "X"'s. So just call it "X.1" and be done with it.

  2. The insane thing. You really want to call the new version "X" too, even though others have already seen the old one. So just use git tag -f again, as if you hadn’t already published the old one.

So in conclusion, I think the sensible way is to actually publish a new release (0.19.8) with a revert of 0.19.7. This way everyone can move forward, both in bower and npm without any issues, instead of following through with removal of tag on npm (as proposed in #1972).

@thinkingmedia
Copy link

I think a 0.19.8 revert would be best. People like me will forget to remove the version lock from their bower or npm files.

@hochi-vivovii
Copy link

Agree coz now my project is stuck on 0.9.16 and would like to unlock asap.

@thinkingmedia
Copy link

You can overwrite bower's latest version.

bower install --save angular-ui-select
// then replace but do not save
bower install angular-ui-select#0.19.6

Next time you do an update it'll be upgraded to latest. Just wait until the fix is published.

@Jefiozie
Copy link
Contributor

Jefiozie commented Apr 13, 2017

I'm looking at the problem now.
Reverting is probably best so checking that option.

Can people verify that default behaviour is back to normal in this plunker plunker with multiple

@Jefiozie
Copy link
Contributor

Updated the plunker examples could somebody verify this is working again?
Then I can push the changes.

@lchanouha
Copy link

@Jefiozie I don't have any errors anymore with "Version: 0.19.7 - 2017-04-15T14:28:36.649Z"

@regmish
Copy link

regmish commented Apr 17, 2017

@Jefiozie Still getting the same error. Tried versions 0.19.5, 0.19.6 and 0.19.7 . With clean bower install as well. and NO LUCK.

@Jefiozie
Copy link
Contributor

@lchanouha thanks for the verifying.

Hope i can send a new version pretty soon.

@tkserver
Copy link

For reference, I got: Error: $injector:strictdi Explicit annotation required on 0.19.7 and the error went away with version 0.19.6 on Angular 1.4.8.

@Jefiozie
Copy link
Contributor

Just pushed a new version where I reverted the head/ footer feature hope this will solve all issues.

Please let me know.

@thinkingmedia
Copy link

@Jefiozie I'm not fetching the new version via bower. It's still installing 0.19.7.

@Jefiozie
Copy link
Contributor

On npm is see that it is updated.

However our versioning is a bit strange. When releasing 0.19.8 in the file itself is a reference to 0.19.7.
Can you verify if this is the case?

This should be present in the select.js file:

 /*!
 * ui-select
 * http://github.com/angular-ui/ui-select
 * Version: 0.19.7 - 2017-04-15T14:28:36.649Z
 * License: MIT
 */

@thinkingmedia
Copy link

@Jefiozie This was a mistake on my part. I misread the bower output messages. I did receive 0.19.8 via bower update.

Thank you so much for your great plugin and help.

@Jefiozie
Copy link
Contributor

Closing this issue as it seems to be resolved. See comments above. if not please let me know i will update / reopen the issue.

@msingh6
Copy link

msingh6 commented Jun 8, 2017

Hi @Jefiozie , I have used code from https://jsfiddle.net/betonetotbo/0yfhe7pf , so can you please share the details as in which files i have to be change for header and footer the code and what code. It will be so helpful if you provide it accordingly.

@Jefiozie
Copy link
Contributor

The header and footer feature is removed from the latest as there ware many problems with it. Hopefully it will be in next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.