Angular is not defined after update to new ionic version


I’ve just updated my ionic version and suddenly angular is not defined anymore.

This is my index.html:

and this is the console output when running ionic serve:

It all worked perfectly fine before updating ionic.
I just ran ionic lib update and now it’s broken…
Any ideas why?


It because you have a syntax error in your ionic.min.bundle…
see the first line you javascript console.

Try to download the source of this file another time or maybe the browser caches the old source.

STRG + SHIFT + R to do a hard reload.


There was a known bug around that function that makes the downloaded file not to be correctly extracted.
ionic lib update bug
Just manually download the base file at and extract the lib yourself. All will be fine


@peterrobot that helped, thank you


The download solution didn’t work for me. I double checked my ionic version in js/ionic.js and it’s 1.0.0 - I’m getting the error in ionic-angular at line 17:

var IonicModule = angular.module('ionic', ['ngAnimate', 'ngSanitize', 'ui.router']),

at the console:

ionic-angular.js:17 Uncaught ReferenceError: angular is not defined(anonymous function) @ ionic-angular.js:17(anonymous function) @ ionic-angular.js:13338

index.html says:

<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.css" rel="stylesheet">
<link rel="stylesheet" href="">

<!-- compiled css output -->
<link href="css/" rel="stylesheet">

<!-- LIBS --> 
<script src="lib/ionic/js/ionic.js"></script>
<script src="lib/ionic/js/ionic-angular.js"></script>

(my stuff)