ngx-gist icon indicating copy to clipboard operation
ngx-gist copied to clipboard

Angular 9 Module Export

Open forrestswork opened this issue 4 years ago • 2 comments

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

forrestswork avatar Apr 28 '20 14:04 forrestswork

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

ad-40 avatar Jul 03 '20 17:07 ad-40

Is there any solution to this? I am getting the same error!

the-mgi avatar Nov 09 '20 22:11 the-mgi