We have Nativescript in our Angular 10 application.
For web, we have RTCPeerConnection working
But for Nativescript on Android, we planned to used this plugin.
When I do tns build android, I get the following error:
ERROR in node_modules/nativescript-webrtc-plugin/angular/index.d.ts:4:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (nativescript-webrtc-plugin/angular) which declares WebRTCModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
4 export declare class WebRTCModule {
The app.module.tns.ts is:
import { HttpClient } from '@angular/common/http';
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptModule, NativeScriptHttpClientModule } from '@nativescript/angular';
import { AppRoutingModule } from '@src/app/app-routing.module.tns';
import { AppComponent } from '@src/app/app.component';
import { WebRTCModule } from "nativescript-webrtc-plugin/angular";
@NgModule({
declarations: [AppComponent],
imports: [
NativeScriptModule,
NativeScriptHttpClientModule,
AppRoutingModule,
WebRTCModule
],
providers: [],
bootstrap: [AppComponent],
schemas: [NO_ERRORS_SCHEMA],
})
export class AppModule {}
The main.tns.ts is:
import { platformNativeScriptDynamic } from '@nativescript/angular';
import { AppModule } from '@src/app/app.module';
import { WebRTC } from 'nativescript-webrtc-plugin';
WebRTC.init();
platformNativeScriptDynamic().bootstrapModule(AppModule);
We have Nativescript in our Angular 10 application.
For web, we have RTCPeerConnection working
But for Nativescript on Android, we planned to used this plugin.
When I do
tns build android
, I get the following error:ERROR in node_modules/nativescript-webrtc-plugin/angular/index.d.ts:4:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (nativescript-webrtc-plugin/angular) which declares WebRTCModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
4 export declare class WebRTCModule {
The app.module.tns.ts is:
The main.tns.ts is:
The package.json is:
tns --version
output is 7.1.2