Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown provider: $$MapProvider

Unknown provider: $$MapProvider <- $$Map <- $$animateQueue <- $animate <- $compile <- $$animateQueue

I have Unknown $$MapProvider Error While Using 'angular-animate'

My bower.json look Like this:

 { 
   "angular": "^1.6.2",
   "angular-animate": "1.6.2",
 }
like image 553
Shakeel Ahmad Avatar asked Feb 16 '17 09:02

Shakeel Ahmad


2 Answers

Credit to federico - As discussed in the comments this can be caused by having different versions of angular and angular-animate. Try to bring these two inline and it should go away.

like image 105
Katana24 Avatar answered Nov 16 '22 19:11

Katana24


recently I've faced the same problem i think it must be compatibility issue of angular with angular-animate (though I'm not sure what the actual problem)

Solution

step1: bower update

now you will find couple of options here asking for a number to answer

step2: press 4 and voila!!

Note: in my case option 4 was

angular#1.6.2 which resolved to 1.6.2 and is required by angular-animate#1.6.2

please find attached screenshot for more clarification enter image description here

like image 43
Rishabh Agrawal Avatar answered Nov 16 '22 20:11

Rishabh Agrawal