After updating to the latest ionic (using bower ionic#master) I receive the following error:
Uncaught Error: [$injector:modulerr] Failed to instantiate module XXX due to:
TypeError: Cannot read property 'prefetchTemplate' of undefined
at $StateProvider.$stateProvider.state (http://0.0.0.0:9000/lib/ionic/release/js/ionic.bundle.js:38285:31)
I had the same problem after updating from beta11 to beta12. The fix is relatively simple: make sure each .state() call has a name. Previously, .state({url:"/foo"}) was fine, now you need to name each state: .state(‘foo’, {url:’/foo’}). This fixed it for me.