ngx-youtube-player icon indicating copy to clipboard operation
ngx-youtube-player copied to clipboard

Unable to integrate this package in my Angular project

Open avinashji1302 opened this issue 1 year ago • 0 comments

"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 { }

avinashji1302 avatar Nov 08 '23 09:11 avinashji1302