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
If you don't explicitly import all the RxJS operators that UI-Router requires (primarily for the UISref directive) they seem to get tree-shaked away when running in AoT (--aot) and/or production build (--prod).
but they seem to get stripped away (likely due to webpack tree shaking) and cause an exception at runtime
TypeError: this._globals.start$.switchMap is not a function
at UISrefStatus.ngAfterContentInit (vendor.bundle.js:13026)
at View_ContactListComponent1.webpackJsonp.762.View_ContactListComponent1.detectChangesInternal (1.chunk.js:1074)
at View_ContactListComponent1.AppView.detectChanges (vendor.bundle.js:7364)
at ViewContainer.detectChangesInNestedViews (vendor.bundle.js:10602)
at View_ContactListComponent0.webpackJsonp.762.View_ContactListComponent0.detectChangesInternal (1.chunk.js:1188)
at View_ContactListComponent0.AppView.detectChanges (vendor.bundle.js:7364)
at View_ContactListComponent0.AppView.internalDetectChanges (vendor.bundle.js:7349)
at View_ContactsComponent0.webpackJsonp.764.View_ContactsComponent0.detectChangesInternal (1.chunk.js:1645)
at View_ContactsComponent0.AppView.detectChanges (vendor.bundle.js:7364)
at View_ContactsComponent0.AppView.internalDetectChanges (vendor.bundle.js:7349)
at View_ContactsComponent_Host0.webpackJsonp.764.View_ContactsComponent_Host0.detectChangesInternal (1.chunk.js:1573)
at View_ContactsComponent_Host0.AppView.detectChanges (vendor.bundle.js:7364)
at ViewRef_.detectChanges (vendor.bundle.js:36485)
at UIView.applyInputBindings (vendor.bundle.js:8271)
at UIView.applyUpdatedConfig (vendor.bundle.js:8229)
I'm not sure what best practice is regarding these imports, but it seems to work if the imports are moved into each file that requires the operator.
If you don't explicitly import all the RxJS operators that UI-Router requires (primarily for the UISref directive) they seem to get tree-shaked away when running in AoT (
--aot
) and/or production build (--prod
).UI-Router imports the operators in the index file:
but they seem to get stripped away (likely due to webpack tree shaking) and cause an exception at runtime
I'm not sure what best practice is regarding these imports, but it seems to work if the imports are moved into each file that requires the operator.
Related to: #28
The text was updated successfully, but these errors were encountered: