Getting error in ionic.bundle.js


#1

Hi there, I am trying to build-up a mobile app, and i am using some XMPP client side library called Strophe.js,
But i am getting an error in ionic.bundle.js, i think there are some conflicting issues because as soon as i am removing my XMPP contents from my code,these error disappears,
The error details are like this

Uncaught TypeError: undefined is not a function ionic.bundle.js:20195 $get.Scope.$apply ionic.bundle.js:15805
done ionic.bundle.js:16010
completeRequest ionic.bundle.js:15949
xhr.onreadystatechange

Here are my index.html file script contents

<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="lib/lodash/dist/lodash.min.js"></script>
<script src="lib/angular-cache/dist/angular-cache.min.js"></script>
<script src="lib/ionic/js/angular/angular-resource.js"></script>

<script src="lib/ionic/js/angular/angular-animate.js"></script>
<script src="lib/ionic/js/angular/angular-route.js"></script>

<script src="lib/ionic/js/angular/angular-local-storage.js"></script>
<script src="lib/ionic/js/angular/angular-sanitize.js"></script>
<script src="js/toastr.min.js"></script>
<script src="js/moment.js"></script>
<script src="js/timer.js"></script>

<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

<!-- your app's js -->
<!-- Bootstrapping -->
<script src="app/app.js"></script>
<script src="app/config.js"></script>
<script src="app/config.exceptionHandler.js"></script>
<script src="app/config.route.js"></script>

<script src="app/common/common.js"></script>
<script src="app/common/logger.js"></script>
<script src="app/common/spinner.js"></script>