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
Post a Comment