You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Angular.js 1.3-rc0 HTML5 Location and base tags #8866
Error: [$location:nobase] $location in HTML5 mode requires a <base> tag to be present!
http://errors.angularjs.org/1.3.0-rc.0/$location/nobase
at /code/project/public/js/vendor.js:57677
at invoke (/code/project/public/js/vendor.js:51462)
at /code/project/public/js/vendor.js:51294
at getService (/code/project/public/js/vendor.js:51421)
at invoke (/code/project/public/js/vendor.js:51453)
at /code/project/public/js/vendor.js:51294
at getService (/code/project/public/js/vendor.js:51421)
at invoke (/code/project/public/js/vendor.js:51453)
at /code/project/public/js/vendor.js:51294
at getService (/code/project/public/js/vendor.js:51421)
at invoke (/code/project/public/js/vendor.js:51453)
at /code/project/public/js/vendor.js:51298
at forEach (/code/project/public/js/vendor.js:47695)
at createInjector (/code/project/public/js/vendor.js:51298)
at workFn (/code/project/bower_components/angular-mocks/angular-mocks.js:2226)
PhantomJS 1.9.7 (Mac OS X): Executed 9 of 47 (9 FAILED) ERROR (0.016 secs / 0.078 secs)
@tysonnero did you upgrade both angular-mocks and angular? (a frequent occurrence lately seems to be people reporting bugs caused by using mismatched versions of angular-mocks and angular, which is why I ask)
@caitp - I did upgrade angular, angular-mocks, and all other angular libs. I opened each file to double check the version was 1.3.0-rc.1. I retried the upgrade this morning on a different box to no avail. But perhaps I'm doing something wrong.
Activity
IgorMinar commentedon Aug 30, 2014
@tbosch, I think that we need to make sure that the mock has a default base url set to
/caitp commentedon Sep 2, 2014
accident! carry on.
tbosch commentedon Sep 2, 2014
Yes, will work on this today
fix($location): set `baseHref` in mock browser to `/`
tysonnero commentedon Sep 12, 2014
I've upgraded to v1.3.0-rc.1, however I am still seeing the exact same issue as @billxinli.
caitp commentedon Sep 12, 2014
@tysonnero did you upgrade both angular-mocks and angular? (a frequent occurrence lately seems to be people reporting bugs caused by using mismatched versions of angular-mocks and angular, which is why I ask)
ghoullier commentedon Sep 13, 2014
I'v the same problem as @tysonnero and @billxinli. Reproduced with rc-0 and rc-1, not reproduced in beta-19.
tysonnero commentedon Sep 15, 2014
@caitp - I did upgrade angular, angular-mocks, and all other angular libs. I opened each file to double check the version was 1.3.0-rc.1. I retried the upgrade this morning on a different box to no avail. But perhaps I'm doing something wrong.
billxinli commentedon Sep 15, 2014
When the Angular.js team fixed the mock location issue, we just bumped angular-mock to master.
which made all of our tests passing again.
Awk34 commentedon Nov 12, 2014
Thanks guys, I had the same issue, forgot to bump
angular-mocksto 1.3johnpapa commentedon Nov 21, 2014
appears to be fixed in 1.2.26, too. thanks
bperel commentedon Jun 15, 2015
I don't see this fixed on 1.2.x : angular-mocks.js