Base solution for your next web application
Open Closed

Angular 2 to Angular 4 problems #2985


User avatar
0
th3monk3y created

So I thought I'd upgrade to angular 4 since they tout it as being a piece of cake. Well it's anything but that! :)

I'm on the final stretch but keep encountering the following error.

Uncaught (in promise): Error: Cannot activate an already activated outlet\nError: Cannot activate an already activated outlet\n

I have added the following import as suggested on the Angular 4 doc. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

I have also updated to the latest abp-ng2-module 1.0.0

I know you guys ported the code to angular 4 so I am hoping you can help me out.

thanks in advance


2 Answer(s)
  • User Avatar
    0
    th3monk3y created

    I was able to resolve this by adding import to root-module.ts. Originally I had it in app.module.ts

    Hope this helps someone else.

    import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

    and then add reference in imports

    @NgModule({ imports: [ BrowserModule, SharedModule.forRoot(), ModalModule.forRoot(), AbpModule, ServiceProxyModule, RootRoutingModule, BrowserAnimationsModule ],

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ th3monk3y,

    Thank your very much for solution :). We will also upgrade our angular2 template to angular4 in short time.