Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 9 compatibility issue. #41

Open
ClimateAtlas opened this issue Jun 14, 2020 · 3 comments
Open

Angular 9 compatibility issue. #41

ClimateAtlas opened this issue Jun 14, 2020 · 3 comments

Comments

@ClimateAtlas
Copy link

On angular 9 there is a problem when importing the module in app.module.ts. Upon compilation attempt the following error occures:

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 {

@dmitryr117
Copy link

Seems this issue is due to this library not being compatible with Ivy. If you set the following inside of projects tsconfig.json:

"angularCompilerOptions": { "enableIvy": false }

It will work using old Angular renderer. Still have to see how to update this thing to work with Ivy out of the box.

@triniwiz
Copy link
Owner

I’ll release a new build using ngcc

@nylser
Copy link

nylser commented Aug 24, 2020

Any updates on this? I'm currently working on a (angular 10) project and would really like to use your fancywebrtc/nativescript-webrtc combination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants