I've been working to upgrade my project from Angular Alpha 48 to the new beta.
I think I had successfully gotten alpha 52 working. Upgrading to a future version (I'm afraid I forget which... possibly alpha 53) I started getting these exceptions:
EXCEPTION: Token must be defined!
angular2.dev.js:22692 EXCEPTION: Token must be defined!BrowserDomAdapter.logError @ angular2.dev.js:22692BrowserDomAdapter.logGroup @ angular2.dev.js:22703ExceptionHandler.call @ angular2.dev.js:1163(anonymous function) @ angular2.dev.js:12545run @ angular2-polyfills.js:138(anonymous function) @ angular2.dev.js:13249NgZone.run @ angular2.dev.js:13211ApplicationRef_.bootstrap @ angular2.dev.js:12523bootstrap @ angular2.dev.js:24412(anonymous function) @ (index):89run @ angular2-polyfills.js:138zoneBoundFn @ angular2-polyfills.js:111lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:1511lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:1523lib$es6$promise$$internal$$publish @ angular2-polyfills.js:1494(anonymous function) @ angular2-polyfills.js:243run @ angular2-polyfills.js:138zoneBoundFn @ angular2-polyfills.js:111lib$es6$promise$asap$$flush @ angular2-polyfills.js:1305
angular2.dev.js:22692 STACKTRACE:BrowserDomAdapter.logError @ angular2.dev.js:22692ExceptionHandler.call @ angular2.dev.js:1165(anonymous function) @ angular2.dev.js:12545run @ angular2-polyfills.js:138(anonymous function) @ angular2.dev.js:13249NgZone.run @ angular2.dev.js:13211ApplicationRef_.bootstrap @ angular2.dev.js:12523bootstrap @ angular2.dev.js:24412(anonymous function) @ (index):89run @ angular2-polyfills.js:138zoneBoundFn @ angular2-polyfills.js:111lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:1511lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:1523lib$es6$promise$$internal$$publish @ angular2-polyfills.js:1494(anonymous function) @ angular2-polyfills.js:243run @ angular2-polyfills.js:138zoneBoundFn @ angular2-polyfills.js:111lib$es6$promise$asap$$flush @ angular2-polyfills.js:1305
angular2.dev.js:22692 Error: Token must be defined!
at Array.map (native)
and nothing shows up in the webpage.
I had switched my 'bootstrap' code to use what's in the latest example code (now done from index.html) and I figured maybe this was incompatible with the alpha version I was using, so I went ahead and tried going directly to Angular beta 1. However I still get this weird "Token must be defined" error.
I've tried debugging this further, adding console.log() calls to the angular source to see what this token is, but... it really is just an 'undefined' variable....
Not sure what is causing it or how to debug further. Any ideas?