anyone is able to use this package with Angular 16? #53
jasperlan666666
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This package works well for Angular 15/14/13 but fails for Angular 16
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 ()
Beta Was this translation helpful? Give feedback.
All reactions