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
-
Uninstall the deprecated package
npm uninstall --save @onecx/standalone-shell -
Install
@onecx/angular-standalone-shellif it is not already installedng add @onecx/angular-standalone-shell
Update Imports and Providers
-
Update all imports from
@onecx/standalone-shellto@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 {}