Closed ramrealpage closed 7 years ago
I am having the same problem.
I am having the same problem.
I did a workaround, declaring NouisliderComponent inside my 'proxy-module', instead importing entire NouisliderModule.
At first it worked...but is weird...
import { CommonModule } from '@angular/common';
import { SliderComponent } from './slider.component';
-import { NouisliderModule } from 'ng2-nouislider';
+import { NouisliderComponent } from 'ng2-nouislider';
@NgModule({
imports: [
CommonModule,
- NouisliderModule
],
- declarations: [SliderComponent],
+ declarations: [SliderComponent, NouisliderComponent],
exports: [SliderComponent],
})
export class SliderModule { }
Version 1.7.0 is broken, a downgrade to 1.6.2 worked for me. Check: https://github.com/tb/ng2-nouislider/issues/113
same here, 1.6.2 worked:
npm i --save nouislider ng2-nouislider@1.6.2
npm i --save nouislider ng2-nouislider@latest npm WARN deprecated ng2-nouislider@1.7.0: Version unsupported. Please use latest going forward. +-- ng2-nouislider@1.7.0 `-- nouislider@10.1.0
whats the latest version, after installing facing ERROR in NouisliderModule is not an NgModule 1.7.0 is the latest version., is it the problem with library supporting angular?