$stateProvider cannot read property 'prefetchTemplate'

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)

What’s wrong?

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.

Hi kilian!
That did the trick!! Thank you!!!

$ionicConfigProvider.prefetchTemplates is not a function

I am using nightly build.

States are all like this:

$stateProvider

.state('intro', {
	url: '/',
	templateUrl: 'templates/intro.html',
	controller: 'IntroCtrl'
})