swimlane / ngx-ui

🚀 Style and Component Library for Angular
https://swimlane.github.io/ngx-ui/
MIT License
706 stars 112 forks source link

ngx-ui - angular 14.xx - stackblitz => error #930

Open PhilFlash opened 1 year ago

PhilFlash commented 1 year ago

If i use the standard exemple for angular 14 on stackblitz (https://stackblitz.com/edit/angular-ivy-zbl8my) and if i add package @swimlane/ngx-ui on dependencies, I have an error : Error in ~/src/main.ts ngcc failed to run on @swimlane/ngx-ui@42.5.0.

If i use the "Swimlane Ngx Ui Base" in angular 11 (https://stackblitz.com/edit/swimlane-ngx-ui-base) and If i update all dependencies to lastest (with refresh button) (to angular 14.2) and change app.module.ts like this :

import { IconModule, NgxUIModule } from "@swimlane/ngx-ui";

@NgModule({
  imports: [BrowserModule, NgxUIModule, IconModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule {}

I have an error: Error in /turbo_modules/@swimlane/ngx-ui@42.5.0/bundles/swimlane-ngx-ui.umd.js (11361:9) setting getter-only property "validate"

IMHO, there is a bug. How to use the lastest ngx-ui and angular 14.2.x (with typescript 4.8.x) in stackblitz ?

mukundkatpatal commented 1 year ago

was this ever upgraded to ng-14 or 15? @PhilFlash may I know how did you move ahead? I have forked the ngx-charts to https://github.com/mukundkatpatal/ngx-charts-15 and could build and use the lib. But the app still has a dependency to ngx-ui which is built in ng-12. So I cant run the ngx-charts demo. ajv related errors come up.

PhilFlash commented 1 year ago

Hi, see #931

For ngx-charts and Angular14 and 15, see my pull-request https://github.com/swimlane/ngx-charts/pull/1846 In package.json, I use: "@swimlane/ngx-ui": "^44.4.0", "ajv": "6.12.6",

Philippe