Remove PortalCoreModule

In OneCX v6, PortalCoreModule has been replaced with AngularAcceleratorModule.

Update imports

  • Replace all imports of PortalCoreModule from '@onecx/portal-integration-angular' with AngularAcceleratorModule from @onecx/angular-accelerator.

  • Replace PortalCoreModule (also PortalCoreModule.forRoot(), PortalCoreModule.forMicroFrontend()) with AngularAcceleratorModule.

Example

Before
import { PortalCoreModule } from "@onecx/portal-integration-angular";

@Component({
  standalone: true,
  imports: [PortalCoreModule]
})
After
import { AngularAcceleratorModule } from "@onecx/angular-accelerator";

@Component({
  standalone: true,
  imports: [AngularAcceleratorModule]
})

Remove '@onecx/portal-integration-angular'

@onecx/portal-integration-angular is no longer available in OneCX v6 and must be completely removed from the application at this point.

Verify All Imports Are Migrated

Before removing the package, ensure that all imports from @onecx/portal-integration-angular have been removed or properly migrated to their new locations as outlined in the Update Component Imports section.

Uninstall the Package

Once all imports have been migrated, remove the deprecated package:

npm uninstall @onecx/portal-integration-angular