ui-router / angular-hybrid

Upgrade an ng1 UI-Router app to a ng1+ng2 hybrid using ng-upgrade
MIT License
167 stars 75 forks source link

After update to v15.0.2 I get this error "Cannot read properties of undefined (reading 'inherit')" #590

Open vitiok123 opened 1 year ago

vitiok123 commented 1 year ago

Hi, I upgraded from v14 to v15 i get this error. Also after update I got an empty page after login, I should force $state.go('home') to get to the page, before was working with this "$location.path(...);"

TypeError: Cannot read properties of undefined (reading 'inherit')
    at StateParams.$inherit (stateParams.js:25:55)
    at StateService.href (stateService.js:502:34)
    at BaseUrlRule.handler (urlRule.js:122:24)
    at UrlService.sync (urlService.js:167:39)
    at startUIRouter (main.ts:20:18)
    at _ZoneDelegate.invoke (zone.js:372:26)
    at Object.onInvoke (core.mjs:24210:33)
    at _ZoneDelegate.invoke (zone.js:371:52)
    at Zone.run (zone.js:134:43)
    at NgZone.run (core.mjs:24064:28)