Update to Angular2 beta 16: "Token must be defined" is thrown


#1

I have updated my package.json to the latest angular2 version (2.0.0-beta.16).
Now my project won’t work, on the load (browser platform) the console logs:

reflective_key.ts:26 Uncaught Token must be defined!

If I keep the previous version (beta.15) the app works fine.
Anyone knows if this is a known bug? Or how could I debug my code to find which is the problem (this log doens’t tell much about where the problem is).

Cordova CLI: 6.1.0 (cordova-lib@undefined)
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.23
Ionic App Lib Version: 2.0.0-beta.13
OS: Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa
Node Version: v5.7.0


NPM issue with installing angular2-moment? Peer dependencies are problematic
#2

I found out this issue is opened:

but there’s no real fix for now.


#3

Just a heads up - rather do not update Angular dependencies yourself. Wait for a new release of Ionic to do this for you. These things are tested properly with the selected dependencies and you risk breaking things by changing this yourself.