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
I just found out about a react implementation of ui-router and was playing around with it. The current version of ui-router-core from npm kept rendering setUrl error.
From urlRouter
UrlRouter.prototype.push = function (urlMatcher, params, options) {
var replace = options && !!options.replace;
$location.setUrl(urlMatcher.format(params || {}), replace);
};
Fixed it locally by changing setUrl to url. Thought I'd notify you awesome people here all as well. Thanks!
The text was updated successfully, but these errors were encountered:
I suspect this is because ui-router-react lists ^1.0.0-beta.1 as a dependency, but because beta2 is out now (which introduces this BC break), you're pulling that instead. Try adding beta1 as an exact dependency on your application until either:
A version of ui-router-react supporting beta2 is released
A version of ui-router-react which lists beta1 as an exact dependency is released
Hi! This is definitely because the core is listed as ^, my bad. For now the easy fix, as @warrenseymour already said, is to list the 1.0.0-beta.1 as a dep for your project.
Next version will be based off the beta 2 ;)
Hey all,
I just found out about a react implementation of ui-router and was playing around with it. The current version of
ui-router-core
from npm kept renderingsetUrl
error.urlRouter
Fixed it locally by changing
setUrl
tourl
. Thought I'd notify you awesome people here all as well. Thanks!The text was updated successfully, but these errors were encountered: