Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugrading to uirouter1.x and installed ui-router-core and ui-router-angularjs ,doesnt support legacy code base #664

Closed
RavishankarMSGR opened this issue Sep 15, 2020 · 1 comment

Comments

@RavishankarMSGR
Copy link

Hi, I am trying to migrate my application from angular1.3x to 1.5x,
I have upgraded angular-ui-router: 0.2x to @uirouter/angularjs:1.0x.
I followed the guidelines(https://ui-router.github.io/blog/uirouter-for-angularjs-umd-bundles/) to upgrade uirouter and installed ui-router-core and ui-router-angularjs aswell.
since in my application i was using ui-router-extras: 0.0.14(stickyStateProvider) which is deprecated alternatively i am trying to use @uirouter/sticky-states.

I am getting ( require.js:166 Uncaught Error: Script error for: @uirouter/core ) error after injecting both ui-router-core and ui-router-angularjs (Please consider me rookie if i had made a mistake)
"shim": {
"uiRouterCore": {
"deps": ["angular"]
},
"angularUiRouter": {
"deps": [
"angular",
"uiRouterCore"
]
},
}

Am i following the right approach in migrating my application, please help and shed some light

@RavishankarMSGR
Copy link
Author

@christopherthielen Thank you for your Inputs, worked for me.
christopherthielen/ui-router-extras#336 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant