-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Angular 19 #2386
Comments
Results of first attempt with 19.0.0-rc.0 (support for 17 & 18 dropped):
Only with these 2 changes, "pnpm run build" and "pnpm run test" are successful on my local machine (Windows). Not related to Angular:
|
Hi @laurentgrangier , thank your for the issue and information. If possible, we would like to keep at least support for Angular 18 to not force adopters to immediately migrate to Angular 19 to consume the latest JSON Forms version. According to Angular's official version compatibility table, Angular >= 18.1 is compatible with Typescript 5.5.x. Also, would you like to contribute this update?
Thanks for the hint :) Would you like to contribute this? Otherwise, I'll do this small fix. |
It should be possible to keep support for 18 and 19 if the code stays on Typescript 5.5 which is compatible with Angular 18 and 19 (https://angular.dev/reference/versions). Angular 19 was released on 19.11.2024. I will come with a Pull Request soon. It is OK for me if you fix the small "cross-env" problems. Thank you |
I had to drop the support for Angular 18. There was problems I couldn't solve. With Angular 19 they added "incremental hydration" (see https://angular.dev/guide/incremental-hydration). That leads to changes in angular/core. As I tested the support for both Angular 18 and 19, I got the following error in the angular-material/example app:
The error log itself shows some attempt to use both angular 18 and 19 at the same time. I also added an angular workspace in angular-material package to be able to use Angular CLI (ng build, ng test). I couldn't bring the test to run with the current build system. Using Angular CLI it avoids some strange problems because the current scripts do not initialize everything the same as Angular CLI or are missing some dependencies we don't know. |
Hi @laurentgrangier , thanks for the update. However, as we do not explicitly use incremental hydration, why would its addition be a problem? It seems that the problem stems from mixed usage of Angular 18 and 19, i.e. the platform v19 code trying it to import it from core v18. Concretely, it looks like angular core 18 got drawn in while some other dependencies are used as version 19. Thus, I think we should see if we can still support Angular 18 as along as all angular dependencies are resolved in the same version. If that still breaks then, we can still remove the Angular 18 support. However, I would like to avoid it because of a potential configuration error. |
Hi @lucas-koehle
All the build workflow are green now: #2395 |
@lucas-koehler do you know, when JSON Forms 3.5 with Angular 19 compatibility will be released? |
@SimonRingeisen You could not have timed your question more perfectly 💯 It was just released a few minutes ago: https://www.npmjs.com/package/@jsonforms/angular/v/3.5.0 |
Is your feature request related to a problem? Please describe.
Angular 19 will be published in the "Week of 2024-11-19" according to release plans of Angular's team (https://angular.dev/reference/releases).
JsonForms should support Angular 19 "quickly" after the release of Angular 19.
Describe the solution you'd like
Support for Angular 19.
Drop support for Angular 17 and 18.
Actually I think JsonForms should not have support for two different major versions of Angular, since that could come with problems.
Describe alternatives you've considered
Not relevant.
Package
Angular Bindings, Angular Material Renderers
Additional context
No response
The text was updated successfully, but these errors were encountered: