Skip to content

ERROR in NgSearchboxModule is not an NgModule #2

Description

@FaroukBENGHARSSALLAH

Hi,

I was working on working your awsome input search box in my project. So, i start by adding the dependencies by :
npm install "https://github.com/tybeck/angular2-searchbox.git"
Then, i added the 'NgSearchboxModule' in the app module file

`import { CommonModule } from "@angular/common";
 import { NgModule } from "@angular/core";
 import { FormsModule } from "@angular/forms";
 import { BrowserModule } from "@angular/platform-browser";
 import { HttpModule } from "@angular/http";
 import {AppRoutingModule} from "./app-routing.module";
 import { NgSearchboxModule } from "angular2-searchbox";
 import { AppComponent } from "./app.component";
 import { ListComponent } from  "./list/list.component";
 import { SearchboxComponent } from "./searchbox/searchbox.component"  `;

@NgModule({ declarations: [ AppComponent, ListComponent, SearchboxComponent ], imports: [BrowserModule, CommonModule, FormsModule, HttpModule, AppRoutingModule, NgSearchboxModule], bootstrap: [AppComponent] }) export class AppModule { }

But when i build the project, it throws an error:
ERROR in NgSearchboxModule is not an NgModule

This is a list of ng version:
@angular/cli: 1.0.4 node: 6.10.3 os: win32 x64 @angular/common: 4.1.3 @angular/compiler: 4.1.3 @angular/core: 4.1.3 @angular/forms: 4.1.3 @angular/http: 4.1.3 @angular/platform-browser: 4.1.3 @angular/platform-browser-dynamic: 4.1.3 @angular/router: 4.1.3 @angular/cli: 1.0.4 @angular/compiler-cli: 4.1.3

How i can remove this error ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions