Adjust Standalone Mode

In OneCX v6, the @onecx/standalone-shell library has been renamed to @onecx/angular-standalone-shell.

Starting with v6, standalone applications must register their providers using provideStandaloneProviders().

Update Packages

  1. Uninstall the deprecated package

    npm uninstall --save @onecx/standalone-shell
  2. Install @onecx/angular-standalone-shell if it is not already installed

    ng add @onecx/angular-standalone-shell

Update Imports and Providers

  • Update all imports from @onecx/standalone-shell to @onecx/angular-standalone-shell

  • Update the webpack configuration if it references the deprecated package

  • Register provideStandaloneProviders() in the standalone module providers

Example

Before
import { StandaloneShellModule } from '@onecx/standalone-shell';

@NgModule({
  imports: [StandaloneShellModule]
})
export class AppModule {}
After
import {
  StandaloneShellModule,
  provideStandaloneProviders
} from '@onecx/angular-standalone-shell';

@NgModule({
  imports: [StandaloneShellModule],
  providers: [
    provideStandaloneProviders()
  ]
})
export class AppModule {}