ngx-youtube-player
ngx-youtube-player copied to clipboard
Unable to integrate this package in my Angular project
"This likely means that the library (ngx-youtube-player) which declares NgxYoutubePlayerModule 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.""
this error is showing when i add "import { NgxYoutubePlayerModule } from 'ngx-youtube-player';" in my angular project
my code :
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component';
import { NgxYoutubePlayerModule } from 'ngx-youtube-player';
@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, AppRoutingModule, NgxYoutubePlayerModule.forRoot() // this line is creating problem ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }