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
main.ts:21 Error: Unexpected value 'NgxAgoraSdkNgModule' imported by the module 'AppModule'. Please add an @NgModule annotation.
at verifySemanticsOfNgModuleDef (core.mjs:24416:19)
at core.mjs:24427:9
at Array.forEach ()
at verifySemanticsOfNgModuleDef (core.mjs:24425:60)
at AppModule.get (core.mjs:24378:30)
at getInjectorDef (core.mjs:447:13)
at walkProviderTree (core.mjs:8887:18)
at core.mjs:8847:13
at core.mjs:5160:76
at Array.forEach ()
To Reproduce
upgrade to use Angular 16
Expected behavior
no error from using the module
Screenshots
no screenshots
Desktop (please complete the following information):
OS: ubuntu 20
Browser: Chrome
Version Version 115.0.5790.98 (Official Build) (64-bit)
Smartphone (please complete the following information):
no test with phone device yet, desktop sanity test already failed.
Additional context
Is there a plan to resolve this issue to support Angular 16?
The text was updated successfully, but these errors were encountered:
Describe the bug
Same code works well with Angular 15/14/13 until Angular 16 upgrade (16.1.6).
in app.module.ts
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule,
HttpClientModule,
FormsModule,
BrowserAnimationsModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (httpLoaderFactory),
deps: [HttpClient]
}
}),
NgxAgoraSdkNgModule.forRoot({
AppID: environment.AgoraAPIKey,
Video: { codec: 'h264', mode: 'rtc', role: 'host' }
}),
But got the follow error from Angular 16
main.ts:21 Error: Unexpected value 'NgxAgoraSdkNgModule' imported by the module 'AppModule'. Please add an @NgModule annotation.
at verifySemanticsOfNgModuleDef (core.mjs:24416:19)
at core.mjs:24427:9
at Array.forEach ()
at verifySemanticsOfNgModuleDef (core.mjs:24425:60)
at AppModule.get (core.mjs:24378:30)
at getInjectorDef (core.mjs:447:13)
at walkProviderTree (core.mjs:8887:18)
at core.mjs:8847:13
at core.mjs:5160:76
at Array.forEach ()
To Reproduce
upgrade to use Angular 16
Expected behavior
no error from using the module
Screenshots
no screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Is there a plan to resolve this issue to support Angular 16?
The text was updated successfully, but these errors were encountered: