Skip to content

Please add a @NgModule annotation #168

Description

@Renish94

ERROR in : Unexpected value 'UiSwitchModule in /home/petnpals/public_html/admin/node_modules/angular2-ui-switch/dist/index.d.ts' imported by the module 'AppModule in /home/petnpals/public_html/admin/src/app/app.module.ts'. Please add a @NgModule annotation.

import { UiSwitchModule } from 'angular2-ui-switch';

@NgModule({
  imports: [
    BrowserModule,
    HttpModule,
    UiSwitchModule,
    ....
    AppRoutingModule,
  ],
  declarations: [
    AppComponent
  ],
  providers: [],
  bootstrap: [AppComponent]
})

In Local server work fine but in live server does not work and throws error at compile time

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