Blank page after `ionic lib update`


#1

I’m currently developing an app with ionic for iOS and Android on Mac OSX Macericks (10.9.5). Keeping up to date with the latest version of ionic is not working through the command line.

After updating my ionic library with ionic lib update the javascript throws errors and my views won’t be parsed, resulting in a blank page. When I take a look at the console, I see errors like:

Uncaught SyntaxError: Unexpected token {
angular-resource.js:8 Uncaught TypeError: Cannot read property '$$minErr' of undefined
angular-cache-2.3.4.min.js:10 Uncaught TypeError: Cannot read property 'module' of undefined
ng-cordova.min.js:1 Uncaught ReferenceError: angular is not defined
angular-moment.js:394 Uncaught ReferenceError: angular is not defined

Further inspection learns that ionic downloads the updated library from the driftyco/ionic-bower github repository:

$ ionic lib update
Are you sure you want to replace /Users/jorick/Projects/#namehiddenforclientssake#/www/lib/ionic with an updated version of Ionic?
(yes/no): yes
Latest version: 1.0.0-beta.13  (released 2014-09-24)
Downloading: https://github.com/driftyco/ionic-bower/archive/v1.0.0-beta.13.zip
Ionic version updated to: 1.0.0-beta.13

I already found out that I can fix my app by downloading the zipped beta from the homepage: http://code.ionicframework.com/1.0.0-beta.13/ionic-v1.0.0-beta.13.zip and copying the files in the www/lib/ionic folder of my project.

My ionic cli version is 1.2.5:

$ ionic -v
1.2.5

Anyone else experiencing these problems?
Where can I force the ionic cli to use the driftyco/ionic repository instead of driftyco/ionic-bower?


#2

I’m seeing the same issue – thanks for posting your fix, as well.


#3

Same here… Unzipping manually do the trick for now.


#4

Same here (Windows 7). Tried to re-install by using

npm -g install ionic

but it gets stuck in

npm http 304 https://registry.npmjs.org/wrappy

Also returns a warning: "package.json github-url-grom-git@1.1.1 No repository field."
Maybe this can help to fix the upgrade somewhat.

You downloading and unziping method works perfect.