oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
348 stars 171 forks source link

Error while upgrading to Angular 9 #443

Closed Jiiieeef closed 4 years ago

Jiiieeef commented 4 years ago

Hello,

I am updating my project, which has a dependency to ng2-completer, to Angular 9 and I've got the following error:

ERROR in node_modules/ng2-completer/src/modules/ng2-completer.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of LayoutModule, but could not be resolved to an NgModule class

2 export declare class Ng2CompleterModule {

LayoutModule, which import the Ng2CompleterModule, look like this:

import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule }  from '@angular/flex-layout';
import { Ng2CompleterModule } from 'ng2-completer';

import { MaterialModule } from '@shared/material/material.module';

import { LayoutComponent } from './layout.component';
import { LayoutRoutingModule } from './layout.routing';

@NgModule({
  declarations: [
    LayoutComponent
  ],
  imports: [
    CommonModule,
    LayoutRoutingModule,
    MaterialModule,
    FormsModule,
    Ng2CompleterModule,
    FlexLayoutModule,
  ]
})
export class LayoutModule { }

I am using the 3.0.3 version of Ng2Completer.

Do you have any ideas ?

riderx commented 4 years ago

give a try to : https://github.com/CashStory/ngx-completer We wait the merge of this Pr