-
Notifications
You must be signed in to change notification settings - Fork 94
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
Angular 19 support #268
Comments
PRs are welcome 🤗 thank you! |
I tried to just add the new version to projects/ngx-sweetalert2/package.json, but it crashes at startup with my app, even though the tests on this repo pass :(
It could be something on my side, but unfortunately I won't be able to debug this any time soon :/ so I'll let you perform the upgrade. |
Made a few more attempts, but I don't understand what it wants here - it seems to be related to the move to standalone components, and its inability to inject the loader service at construction time? My app and its tests do import the module though, and I did try changing everything to standalone: false on ngx-sweetalert2.
|
And spent a few more hours on this - sadly, my conclusion so far is that this package only works past Angular 14 by accident, since it uses too many deprecated features (like dynamically creating components outside an injection context, ComponentFactoryResolver, zone-testing, non-standalone components, CommonModule, etc.), and all the dependencies are very old by now (last update was 2y ago?). Angular dependencies were updated over time up to v16 (and claimed compatibility to v18), but without updating the code for it. Getting this to continue working will be a major undertaking unfortunately, especially since the lack of tests means validating it all manually for all possible use cases 😞 |
Thank you so much for putting your time into investigating this @rdamazio What you described in your report indicates that a new major release of this library would be needed to Angular 19. There's no chance I can find the required for this task time and energy 😢 This project is now looking for a maintainer(s): #269Anyone who's willing to give this repo a new life is very welcome 🙌 |
Angular 19 is out! :) But it seems that this package is currently restricted to 18 :(
Can we get an update to the latest version?
I'm happy to send a PR if you'd like, but it seems there aren't a lot of tests here, so I'm hesitant that I'll be able to test properly that nothing breaks.
Thanks in advance
The text was updated successfully, but these errors were encountered: