angular-slider/ngx-slider

ngx-slider working with angular 16 ?

Urvishdudhagara opened this issue · 20 comments

I use ngx-slider in my project but facing error:

Error: src/app/components/e-commerce/e-commerce.module.ts:67:5 - error NG6002: 'NgxSliderModule' does not appear to be an NgModule class.

67 NgxSliderModule
~~~~~~~~~~~~~~~

node_modules/@angular-slider/ngx-slider/slider.module.d.ts:6:22
6 export declare class NgxSliderModule {
~~~~~~~~~~~~~~~
This likely means that the library (@angular-slider/ngx-slider) which declares NgxSliderModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

VicM commented

Yesterday I face the same thing using angular 15.

Use the ngx-slider-v2 package

Not sure what is the problem with the base one, but when installing the v2 version make sure to read the doc and install the proper package version. In your case:

npm install ngx-slider-v2@16.0.0

that will solve the problem, with that I am successfully using the slider.

I reviewed this "ngx-slider-v2" package and I'm hesitant to use it myself. The NPM package is rather misleading, linking back to this repository, documentation, etc. even though it is maintained in a different repository. Furthermore, the repository from which is it maintained appears to be a fork of a fork of this repository. I'm not explicitly saying this is an issue but it certainly raises eyebrows.

I personally would like to see official support for NG 14/15/16 from this repository.

I reviewed this "ngx-slider-v2" package and I'm hesitant to use it myself. The NPM package is rather misleading, linking back to this repository, documentation, etc. even though it is maintained in a different repository. Furthermore, the repository from which is it maintained appears to be a fork of a fork of this repository. I'm not explicitly saying this is an issue but it certainly raises eyebrows.

I personally would like to see official support for NG 14/15/16 from this repository.

I created the ngx-slider-v2 fork to update the lib to support Angular 14+ because the current oficial version does not support Ivy so it cannot be used in recent versions of Angular.

Altough it seems to be in the plans to update for Ivy support see, you can see my fork as a workaround until that isn't done.