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 Module Export #8

Open
forrestswork opened this issue Apr 28, 2020 · 2 comments
Open

Angular 9 Module Export #8

forrestswork opened this issue Apr 28, 2020 · 2 comments

Comments

@forrestswork
Copy link

forrestswork commented Apr 28, 2020

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 { }
@ad-40
Copy link

ad-40 commented Jul 3, 2020

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

@the-mgi
Copy link

the-mgi commented Nov 9, 2020

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

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

3 participants