Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown provider: routerHelperProvider <- routerHelper #11

Open
jtosey opened this issue Jul 1, 2015 · 6 comments
Open

Unknown provider: routerHelperProvider <- routerHelper #11

jtosey opened this issue Jul 1, 2015 · 6 comments

Comments

@jtosey
Copy link

jtosey commented Jul 1, 2015

When I try this out-of-the-box, it runs okay, but this test fails:

[1APhantomJS 1.9.7 (Mac OS X 0.0.0) layout sidebar "before each" hook FAILED
    Error: [$injector:unpr] Unknown provider: routerHelperProvider <- routerHelper
    http://errors.angularjs.org/1.3.16/$injector/unpr?p0=routerHelperProvider%20%3C-%20routerHelper
        at ...project-path.../bower_components/angular/angular.js:4031
        at getService (...project-path.../bower_components/angular/angular.js:4178)
        at ...project-path.../bower_components/angular/angular.js:4036
        at getService (...project-path.../bower_components/angular/angular.js:4178)
        at ...project-path.../bower_components/bardjs/dist/bard.js:301
        at forEach (...project-path.../bower_components/angular/angular.js:326)
        at bardInject (...project-path.../bower_components/bardjs/dist/bard.js:315)
        at ...project-path.../src/client/app/layout/sidebar.controller.spec.js:13

If I comment out references to routerHelper in src/client/app/layout/sidebar.controller.spec.js, the tests pass fine. Is this method deprecated?

@chrissainty
Copy link

I'm currently getting this issue when trying to run the core.route.spec tests.

@setuk
Copy link

setuk commented Nov 16, 2015

i get the same issue - any update on this?

@samehelhawary
Copy link

+1

@boxertech
Copy link

I think there was a breaking change to the application. The sidebar.controller.spec.js is trying to call routerHelp.configureStates. However, routerHelper has no function configureStates. Instead, configureStates exists in each of the other modules router configurations. I am speculating that this was the start of a refactor to only have one configureStates function, but the completed refactor did not get into the repo. Looking to complete the refactor.

@dmitriyparasochka
Copy link

I think you need to add to project module app/blocks/router (router.module.js, router-helper.provider.js)
My app module
angular.module('app', [ 'blocks.router', 'ui.router', 'app.purchase.list' ]);

It's works for me.

@aauronn
Copy link

aauronn commented Apr 10, 2017

you might need too add 'app.core' on your module dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants