Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Error on heroku deployment in Rails + Angular. ui-router

SWKING:

Rails backend. Angular frontend. Using angular-ui-router. On the local, it works fine. But when it is deployed on heroku, it gives this Error. All dependencies seem to be downloaded properly. I need help seeing what this error indicates.

application.js:


//= require jquery
//= require jquery_ujs
//= require angular/angular
//= require angular-ui-router/release/angular-ui-router

//= require bootstrap
//= require_self
//= require_tree .

angular
.module('maphack', ['ui.router'])
.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
$stateProvider
.state('home', {
url: '/',
component: 'homePage'
})

// default fall back route
$urlRouterProvider.otherwise('/');

// enable HTML5 Mode for SEO
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
});

Error Message on Console:


application-118d41a….js:4 Uncaught Error: [$injector:modulerr] Failed to
instantiate module XXXXX due to:
Error: [$injector:unpr] Unknown provider: t
http://ift.tt/2rpY3Pa



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Error on heroku deployment in Rails + Angular. ui-router

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×