ngx-slider icon indicating copy to clipboard operation
ngx-slider copied to clipboard

Not compatible Ivy compiler

Open nen155 opened this issue 2 years ago • 9 comments

Angular version: 14.0.4 angular.json { "projects": { "my-existing-project": { "architect": {

        "build": {
           "options": {
              ...
              "aot": true,
           }
        }
     }
  }

} } tsconfig.app.json { ... "angularCompilerOptions": { "enableIvy": true }

Cannot use this module not compatible with Ivy compiller.

If you remove ivy compiler from tsconfig and angular.json works, but before you must to remove node_modules folder and after you need to do npm install.

nen155 avatar Jul 06 '22 07:07 nen155

If you are using angular 14, ivy is already the default, no need to add "enabeIvy" in compiler options. Also, ngcc will convert this module to ivy and this works well. So if ngcc compiling breaks for you, the problem probably is in your settings.

that being said, it would be nice to see this project updated to ivy native in the future ^^

mokipedia avatar Jul 11 '22 10:07 mokipedia

looks like ng-packagr 3.0.0 it's very old.

Lib project should be updated to latest version of ng-packagr and angular and add "compileMode": "partial" to lib's tsconfig instead of "enableIvy": true

pumano avatar Jul 11 '22 17:07 pumano

'NgxSliderModule' does not appear to be an NgModule class.

This likely means that the library (@angular-slider/ngx-slider) which declares NgxSliderModule has not been processed correctly by ngcc, or 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.

narendrasinghrathore avatar Aug 03 '22 06:08 narendrasinghrathore

I get the same message as @narendrasinghrathore

sovushka-utrom avatar Aug 09 '22 08:08 sovushka-utrom

⠹ Generating browser application bundles (phase: setup)...Processing legacy "View Engine" libraries:

  • @angular-slider/ngx-slider [es2015/esm2015] (https://github.com/angular-slider/ngx-slider.git) Encourage the library authors to publish an Ivy distribution.

narendrasinghrathore avatar Aug 12 '22 06:08 narendrasinghrathore

Hi, I got the same issue with @narendrasinghrathore . Any solution to resolve it with new Angular Ivy version, please ?

thanhlt90 avatar Aug 22 '22 04:08 thanhlt90

@thanhlt90 only possible way is not use this library, because this library is abandoned

pumano avatar Aug 22 '22 06:08 pumano

Hi, I got the same issue with @narendrasinghrathore . Any solution to resolve it with new Angular Ivy version, please ?

@thanhlt90 try to rebuild or do npm install again after adding library, maybe it will resolve.

narendrasinghrathore avatar Aug 23 '22 14:08 narendrasinghrathore

Hi, I got the same issue with @narendrasinghrathore . Any solution to resolve it with new Angular Ivy version, please ?

@thanhlt90 try to rebuild or do npm install again after adding library, maybe it will resolve.

Yeah! It's working for me when try to rebuild with ngcc. Thanks @narendrasinghrathore!

thanhlt90 avatar Aug 24 '22 02:08 thanhlt90

check #296

danisss9 avatar Jan 06 '23 15:01 danisss9

Looking at #296 - there is an alternative:

https://github.com/danisss9/ngx-slider 🤝 https://www.npmjs.com/package/ngx-slider-v2

Same as this repository, but install with npm install --save ngx-slider-v2 and then change the import to:

import { NgxSliderModule } from 'ngx-slider-v2';

whyboris avatar May 04 '23 19:05 whyboris

first npm install --save @angular-slider/ngx-slider and this not work and has error but npm install --save ngx-slider-v2 this work thank for this npm install --save ngx-slider-v2

poriakahrizi avatar Oct 16 '23 07:10 poriakahrizi

If you encounter CUSTOM_ELEMENTS_SCHEMA error in the module you use this package schemas: [ CUSTOM_ELEMENTS_SCHEMA , NO_ERRORS_SCHEMA] Add after the declarations

poriakahrizi avatar Oct 16 '23 08:10 poriakahrizi

Closing old issues on the topic of upgrades. Please follow discussion in more recent issues regarding this subject (#351, #355).

piotrdz avatar Jan 25 '24 07:01 piotrdz