ngx-gist
ngx-gist copied to clipboard
Angular 9 Module Export
I'm getting this issue when trying to import the module in Angular 9:
ERROR in node_modules/ngx-gist/dist/ngx-gist.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxGistModule } from 'ngx-gist/dist/ngx-gist.module';
import {NgxFirebaseClientModule} from '@ngx-firebase/client';
import { AppComponent } from './app.component';
import { DemoComponent } from './components/demo/demo.component';
import { InstallationComponent } from './components/installation/installation.component';
@NgModule({
declarations: [
AppComponent,
DemoComponent,
InstallationComponent
],
imports: [
BrowserModule,
NgxFirebaseClientModule.forRoot({
### config...
}),
NgxGistModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
ERROR in node_modules/ngx-gist/dist/ngx-gist.module.d.ts:1: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 (ngx-gist/dist/ngx-gist.module) which declares NgxGistModule 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.
1 export declare class NgxGistModule {
Getting this error in while using in Angular 9
Is there any solution to this? I am getting the same error!