Uncaught ReferenceError: angular is not defined + 404 error due to Cordova.js

I tried to build a demo app and this keeps popping up when I use Testem to test. As a result, the app login page appears in google chrome when I start up local server but I am unable to go beyond log in or sign in.

Its always the first 2 lines of the 2 files below:


angular.module('bucketList.controllers', [])


angular.module('bucketList', ['ionic', 'firebase', 'bucketList.controllers'])

I have tried installing scripts and this is how index.html looks like

<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- ionic/angularjs js -->

<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="https://cdn.firebase.com/v0/firebase.js"></script> 
<script src="https://cdn.firebase.com/libs/angularfire/0.5.0/angularfire.min.js"></script> 
<script src="https://cdn.firebase.com/v0/firebase-simple-login.js"></script> 
<!-- app's js -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="cordova.js"></script> <!-- cordova script (404 during dev't) -->

Hope someone can help me with this problem?
Does this also mean the 404 error from cordova.js will only disappear only if its in production mode, and only then the login issue will be resolved?

I cant find where you attached the app in html. We need to see the whole index.html

Hello, I’m getting a similar error. On Windows all work fine but on Mac it doesn’t work. I tried to manually update the libs inside the www/lib folder but the error persists. I don’t know what to do to solve this issue.