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 has been archived by the owner on Apr 12, 2024. It is now read-only.
[$injector:pget] Provider '$$sanitizeUri' must define $get factory method.
When I upgraded to angular 1.5.0-rc2. I tracked the error down to the line
args.unshift(null);
In angular.js, in the function instantiate, which is returned from createInternalInjector. With null, the object returned from providerInjector.instantiate(provider_) (where provider_ was the function $$SanitizeUriProvider) is empty. I imagine PhantomJS, being based on quite an old engine, handles new/bind a little differently.
The fix for me was simply changing the null to an {}.
Not sure if the version of phantom this fails on is supported but thought I'd bring it up just in case! :)
The text was updated successfully, but these errors were encountered:
This sounds similar to #13794 We don't officially support PhantomJS as a browser, but the good news is that you can simply upgrade to PhantomJS 2 or use a polyfil for whatever is missing. I think it's the same as in the other issue.
Our test suite started failing with:
When I upgraded to angular 1.5.0-rc2. I tracked the error down to the line
In angular.js, in the function
instantiate
, which is returned fromcreateInternalInjector
. Withnull
, the object returned fromproviderInjector.instantiate(provider_)
(whereprovider_
was the function$$SanitizeUriProvider
) is empty. I imagine PhantomJS, being based on quite an old engine, handles new/bind a little differently.The fix for me was simply changing the
null
to an{}
.Not sure if the version of phantom this fails on is supported but thought I'd bring it up just in case! :)
The text was updated successfully, but these errors were encountered: