Meteor-Angular2
Meteor-Angular2 copied to clipboard
TypeError: Cannot read property 'toString' of undefined after update to alpha-36
Here is the full stack trace from the error. Can you change this repo to use the full angular.js file instead of .min.js? This way if my code needs to change to accommodate I can identify that by debugging. Thanks!
TypeError: Cannot read property 'toString' of undefined at new t (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:101:14852) at n (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:111:18508) at Function.System.register.execute.$traceurRuntime.createClass.resolve (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:111:30033) at e.System.register.execute.$traceurRuntime.createClass.resolveAndCreateChild (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:111:26110) at i (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:113:24202) at http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:113:23710 at r.2.r.run (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:98:1962) at r.System.register.execute.$traceurRuntime.createClass._createInnerZone.e.fork.fork.$run as run at e.System.register.execute.$traceurRuntime.createClass.run (http://localhost:3000/packages/shmck_angular2.js?c75fb96a0ecb1a279b01531d908280b6f766ce24:105:17203) at Object.r as bootstrapSystem.register.execute.$traceurRuntime.createClass.logError @ angular2.dev.min.js:11(anonymous function) @ angular2.dev.min.js:162.r.run @ angular2.dev.min.js:1System.register.execute.$traceurRuntime.createClass._createInnerZone.e.fork.fork.$run @ angular2.dev.min.js:8System.register.execute.$traceurRuntime.createClass.run @ angular2.dev.min.js:8r @ angular2.dev.min.js:16(anonymous function) @ missioncontrol.js:50(anonymous function) @ missioncontrol.js:55(anonymous function) @ missioncontrol.js:57doEval @ system.js:1__eval @ system.js:1a @ system.js:1$__global.upgradeSystemLoader.e.instantiate.cjs.n.metadata.format.n.metadata.execute @ system.js:1f @ system.js:1l @ system.js:1$__global.upgradeSystemLoader.e.instantiate.Promise.all.then.execute @ system.js:1o @ es6-module-loader.js:7p @ es6-module-loader.js:7j @ es6-module-loader.js:7k @ es6-module-loader.js:7(anonymous function) @ es6-module-loader.js:7O @ es6-module-loader.js:7K @ es6-module-loader.js:77.y.when @ es6-module-loader.js:77.v.run @ es6-module-loader.js:73.a._drain @ es6-module-loader.js:73.a.drain @ es6-module-loader.js:7b @ es6-module-loader.js:7
Good idea. I've changed the package to use the development version.
Thank you! I will let you know if/when I figure anything out with the error. For now I downgraded to the previous version of angular 2 and angular 2 router and it works fine.
Zach Curtis P: 970.590.6383 E: [email protected] T: @zachariahCurtis https://twitter.com/#!/@zachariahCurtis
On Tue, Sep 1, 2015 at 3:29 PM, ShMcK [email protected] wrote:
Good idea. I've changed the package to use the development version.
— Reply to this email directly or view it on GitHub https://github.com/ShMcK/Meteor-Angular2/issues/3#issuecomment-136866214 .
@zachariahtimothy , the toString error does not show anymore
@Markusxmr I am still getting the error. I realized that "routerInjectables" is undefined. I glanced at the angular 2 router code and found "routerInjectables" does not exist anywhere. Perhaps bootstrapping the router has changed but not the documentation?
It looks like the routerInjectables
are now ROUTER_BINDINGS
, and routerDirectives
may be referenced as ROUTER_DIRECTIVES
. I've made a pull request to update the tutorial.