ng2-nouislider: NouisliderModule is not an NgModule
I just switched over to angular cli for my project and when I try and serve the project i get the below error, thus crashing the attempt to compile the application so it can be served
NouisliderModule is not an NgModule
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 32 (1 by maintainers)
I fixed this by change the import path of the module:
import {NouisliderModule} from 'ng2-nouislider'=>import {NouisliderModule} from 'ng2-nouislider/src/nouislider'@karan83 I did the same think you said
"styles": [ "styles.css", "../node_modules/nouislider/distribute/nouislider.min.css" ],in my angular-cli.json.I added the following html
<nouislider [connect]="true" [min]="0" [max]="15" [(ngModel)]="someRange"></nouislider>when I run I get
@visar1897 Thank You 😃
Put NouisliderComponent in declarations not imports.