Urigo / angular-meteor

Angular and Meteor - The perfect stack
https://www.angular-meteor.com/
MIT License
2.36k stars 623 forks source link

Socially section 10 - deploying your app (receiving JS error on client) #1339

Closed robertlight closed 8 years ago

robertlight commented 8 years ago

I am up to step 10 on the socially tutorial and have deployed my app to Galaxy

It is up and running here: http://app.mousetomouse.com

It's running localling just fine. I do get the following when building:

Unable to resolve some modules:

  "!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less" in
/Users/light/ownCloud/meteor/socially/node_modules/angular2-meteor-accounts-ui/login-buttons.js (web.browser)

It is running the serverside code because I am getting the initialization of the database done correctly (I'm using mlab.com)

The javascript console has:

Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
8b00142….js?meteor_js_resource=true:53 EXCEPTION: Error: Uncaught (in promise): No provider for t! (t -> t)
8b00142….js?meteor_js_resource=true:53 EXCEPTION: Error: Uncaught (in promise): No provider for t! (t -> t)t.logError @ 8b00142….js?meteor_js_resource=true:53t.logGroup @ 8b00142….js?meteor_js_resource=true:53e.call @ 8b00142….js?meteor_js_resource=true:52(anonymous function) @ 8b00142….js?meteor_js_resource=true:47t.object.i @ 8b00142….js?meteor_js_resource=true:52t.__tryOrUnsub @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._next @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._finalNext @ 8b00142….js?meteor_js_resource=true:65t._next @ 8b00142….js?meteor_js_resource=true:65t.next @ 8b00142….js?meteor_js_resource=true:65t.emit @ 8b00142….js?meteor_js_resource=true:52_zoneImpl.n.NgZoneImpl.onError @ 8b00142….js?meteor_js_resource=true:47inner.inner.fork.onHandleError @ 8b00142….js?meteor_js_resource=true:47e.handleError @ 8b00142….js?meteor_js_resource=true:38e.runGuarded @ 8b00142….js?meteor_js_resource=true:38o @ 8b00142….js?meteor_js_resource=true:38invoke @ 8b00142….js?meteor_js_resource=true:38
8b00142….js?meteor_js_resource=true:53 STACKTRACE:t.logError @ 8b00142….js?meteor_js_resource=true:53e.call @ 8b00142….js?meteor_js_resource=true:52(anonymous function) @ 8b00142….js?meteor_js_resource=true:47t.object.i @ 8b00142….js?meteor_js_resource=true:52t.__tryOrUnsub @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._next @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._finalNext @ 8b00142….js?meteor_js_resource=true:65t._next @ 8b00142….js?meteor_js_resource=true:65t.next @ 8b00142….js?meteor_js_resource=true:65t.emit @ 8b00142….js?meteor_js_resource=true:52_zoneImpl.n.NgZoneImpl.onError @ 8b00142….js?meteor_js_resource=true:47inner.inner.fork.onHandleError @ 8b00142….js?meteor_js_resource=true:47e.handleError @ 8b00142….js?meteor_js_resource=true:38e.runGuarded @ 8b00142….js?meteor_js_resource=true:38o @ 8b00142….js?meteor_js_resource=true:38invoke @ 8b00142….js?meteor_js_resource=true:38
8b00142….js?meteor_js_resource=true:53 Error: Uncaught (in promise): No provider for t! (t -> t)
    at f (8b00142….js?meteor_js_resource=true:38)
    at 8b00142….js?meteor_js_resource=true:38
    at e.invoke (8b00142….js?meteor_js_resource=true:38)
    at Object.inner.inner.fork.onInvoke (8b00142….js?meteor_js_resource=true:47)
    at e.invoke (8b00142….js?meteor_js_resource=true:38)
    at e.run (8b00142….js?meteor_js_resource=true:38)
    at 8b00142….js?meteor_js_resource=true:38
    at e.invokeTask (8b00142….js?meteor_js_resource=true:38)
    at Object.inner.inner.fork.onInvokeTask (8b00142….js?meteor_js_resource=true:47)
    at e.invokeTask (8b00142….js?meteor_js_resource=true:38)t.logError @ 8b00142….js?meteor_js_resource=true:53e.call @ 8b00142….js?meteor_js_resource=true:52(anonymous function) @ 8b00142….js?meteor_js_resource=true:47t.object.i @ 8b00142….js?meteor_js_resource=true:52t.__tryOrUnsub @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._next @ 8b00142….js?meteor_js_resource=true:66t.next @ 8b00142….js?meteor_js_resource=true:66t._finalNext @ 8b00142….js?meteor_js_resource=true:65t._next @ 8b00142….js?meteor_js_resource=true:65t.next @ 8b00142….js?meteor_js_resource=true:65t.emit @ 8b00142….js?meteor_js_resource=true:52_zoneImpl.n.NgZoneImpl.onError @ 8b00142….js?meteor_js_resource=true:47inner.inner.fork.onHandleError @ 8b00142….js?meteor_js_resource=true:47e.handleError @ 8b00142….js?meteor_js_resource=true:38e.runGuarded @ 8b00142….js?meteor_js_resource=true:38o @ 8b00142….js?meteor_js_resource=true:38invoke @ 8b00142….js?meteor_js_resource=true:38
8b00142….js?meteor_js_resource=true:38 Unhandled Promise rejection: No provider for t! (t -> t) ; Zone: angular ; Task: Promise.then ; Value: t {message: "No provider for t! (t -> t)", stack: "Error: DI Exception↵    at t [as constructor] (htt…07924c87734f.js?meteor_js_resource=true:40:16277)", keys: Array[2], injectors: Array[2]}i @ 8b00142….js?meteor_js_resource=true:38o @ 8b00142….js?meteor_js_resource=true:38invoke @ 8b00142….js?meteor_js_resource=true:38
8b00142….js?meteor_js_resource=true:38 Error: Uncaught (in promise): No provider for t! (t -> t)(…)i @ 8b00142….js?meteor_js_resource=true:38o @ 8b00142….js?meteor_js_resource=true:38invoke @ 8b00142….js?meteor_js_resource=true:38

Any ideas?

Is there still a problem with the uglify.mangle??
If so, how do I turn this off when deploying to Galaxy??

Status: currently attempting: barbatus:ng2-minifier-js temp fix

Yes...that did the trick quite nicely. I would recommend altering the tutorial temporarily so that future adventurers don't stub their toes on this.

Urigo commented 8 years ago

can be tracked here: https://github.com/angular/angular/issues/6380