Uncaught TypeError: a.customFilter is not a function with ngAnimate

Viewed 3225

I'm working on an AngularJS application, and I tried to add Angular Animate.

Angular Route didn't cause any problem, but it seems Angular Animate is not compatible with something in my app.

I load the libs in this order:

<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-animate/angular-animate.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-route/angular-route.min.js"></script>

And use them in my app.js:

var app = angular.module('tictactoe', ['ngRoute', 'ngAnimate']);

I'm getting the following error. JQuery and Angular (Vanilla + Route + Animate) have been installed with npm

My error

Dependencies versions:

versions

2 Answers

Please downgrade to version angular animate 1.6.4. Here are the file you should also download it from that link. it works for me.

https://code.angularjs.org/1.6.4/

Also change bower.json (angular-animate/bower.json) enter image description here

Related