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

Please add a @NgModule annotation #168

Open
Renish94 opened this issue Jan 9, 2019 · 1 comment
Open

Please add a @NgModule annotation #168

Renish94 opened this issue Jan 9, 2019 · 1 comment

Comments

@Renish94
Copy link

Renish94 commented Jan 9, 2019

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

@eworksth
Copy link

Having exactly the same problem, did you ever manage to sort this out ?

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

2 participants