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

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

Open PhilFlash opened this issue 3 years ago • 2 comments

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/[email protected].

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/[email protected]/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 ?

PhilFlash avatar Nov 06 '22 10:11 PhilFlash

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.

mukundkatpatal avatar May 25 '23 11:05 mukundkatpatal

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

PhilFlash avatar May 25 '23 15:05 PhilFlash