I am trying this example https://github.com/ZouYouShun/ngx-hm-carousel. It is working fine but when I run this command:
ng build --prod
I am getting this error:
ERROR in :
Unexpected value 'NgxHmCarouselModule in D:/angular-apps/CarouselApp/node_modules/ngx-hm-carousel/lib/ngx-hm-carousel.module.d.ts' imported by the module 'AppModule in D:/angular-apps/CarouselApp/src/app/app.module.ts'. Please add a @NgModule annotation.
Do u know what is missing?
Using:
Angular CLI: 6.0.8
Node: 8.11.2
OS: win32 x64
This is my app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxHmCarouselModule } from 'ngx-hm-carousel';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxHmCarouselModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }