Angular-animate - Unknown provider: $$asyncCallbackProvider <- $$asyncCallback <- $animate <- $compile

前端 未结 5 1040
萌比男神i
萌比男神i 2020-12-03 13:15

I have a strange issue. I want to include angular-animate in my AngularJS project - I am using AngularJS v1.2.6. I have added angular-animate to my bower file.

5条回答
  •  抹茶落季
    2020-12-03 13:49

    The problem here is that the Angular version does not match to the angular-animate version. Try to keep them aligned, so if you use angular 1.2.6, also use angular-animate 1.2.6.

    Also you have to clean you bower components (delete the bower folder) after you make changes in the bower.json, bower will not check if the version installed is the same as in the bower.json

    Generally I would recommend using the highest available stable angular and ng-animate version if you can.

提交回复
热议问题