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

Needs error message when no templates found to render #86

Open
SamuelMarks opened this issue Jan 8, 2016 · 1 comment
Open

Needs error message when no templates found to render #86

SamuelMarks opened this issue Jan 8, 2016 · 1 comment

Comments

@SamuelMarks
Copy link

Currently it just crashes, i.e.: fails with an error about failing to load the moduleName.

@eric-burel
Copy link

What does your error look like ? I have something like :

    forEach@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:321:24
    loadModules@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:4487:12
    createInjector@/home/eric-burel/Websites/stoulou/assets/bower_components/angular/angular.js:4409:30
    workFn@/tmp/6ffef11293cda7c39e2e8b72934e49d8.browserify:2800:60
    inject@/tmp/6ffef11293cda7c39e2e8b72934e49d8.browserify:2780:41

when executing this piece of code :
beforeEach(angular.mock.module('/frontend/core/views/navbar.html')); beforeEach(function(){ angular.mock.inject(function(_$rootScope_, _$compile_, _Menu_){ // pass through any asset request $compile = _$compile_;

If I remove the angular.mock.module it works fine.
I think its due to the template not being found or a bad karma configuration, I struggle to debug this...

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

2 participants