angularjs - Angular in Rails throws an error in production `Error: [$injector:unpr] Unknown provider: e` -


when running app in development works fine. when deployed, throws error :

error: [$injector:unpr] unknown provider: e 

the url app : http://shimizu.leafycode.com/panel/signin

the js files : https://gist.github.com/thpubs/3a9e088ad3410e18030c

i followed other stack-overflow answers , fixed app accordingly still problem there! please help.

your code being minified , can see @ least 1 place in app.js not using array notation when calling .config , .run

so in app.js update line

.config(function($mdthemingprovider) { 

to

.config(['$mdthemingprovider', function($mdthemingprovider) {     // ... code ... }]) 

and line

.run(function($rootscope, $templatecache) { 

to

.run(['$rootscope', '$templatecache', function($rootscope, $templatecache) {     // .. code ... }]) 

double check other places in code injecting services.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -