Closed gopirajum closed 6 years ago
This error happens in IE11 when you do Object.assign(null)
. I suspect one of the arguments to this function is null
or undefined
. _extend
is used extensively, so it's impossible to know what the root cause is without a stack trace (with sourcemaps so its not all vendor.??????.js
) .
This could be a bug in ui-router, or in your code (sometimes ui-router uses your configuration as second/third arguments to this fn)
You should use the debugger and walk up the stack when this occurs to find out what is happening.
Any updates? Did you try debugging?
Just a note for others that run into this (because this is a top search result in google).
Issue was with my usage of a transition hook:
$transitions.onSuccess("app.somestate.**", (transition) => {
doStuff();
});
The first param should be an object:
$transitions.onSuccess({ from: "app.somestate.**"} , (transition) => {
doStuff();
});
Reference: https://ui-router.github.io/guide/transitionhooks
@christopherthielen Not sure if there is better way to have error checking around this but it was a convoluted road to find out that this is what IE11 was complaining about (Chrome/FF had no issue with it being a string)
ui-router is causing an issue in the IE11 browser, Everything is working fine in chrome, firefox, and even IE10. getting following error in the browser console.
Current Behavior:
I'm pasting the ui-router code here where exactly causing an issue.
Any guesses of why this happening would be greatly appreciated.