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 13 - reactive-form-validators ivy enabled #542
Comments
Hi, looks like this also causes Jest UnitTests with ng13 to fail. After updating to Angular13 our UnitTests for Components that used the RXFormBuilder suddenly failed in a similar way as described here: ngneat/reactive-forms#118, caused by incompatibility with Angular13. |
@tim-blome would be great if you share the issue repo. I tried but didn't get any error, maybe I am missing something. |
@ajayojha I'm too facing the same issue with angular@13.3.4. the application itself is not getting compiled and failing with below error:
Here is the stackblitz link for reference |
@KiranMantha I have downloaded the stackblitz code and tried to run the same in my local but it's not working, as this is showing a different error than the mentioned issue you have highlighted. I am keen to solve this issue, but for this, I would need an issue repo. Would be great if you share the issue repo with minimal code [nonproduction code]. |
@ajayojha I have created a new NX Angular 13 project with the latest Jest version and The test fails when creating a RxFormGroup. I seen a discussion about this error, I don't know there are a fix about this: ==> TypeError: Class constructor FormControl cannot be invoked without 'new' NRWL / NX cli version Angular cli version: Package.json :
|
Would be great if you share the sample issue repo or else share the package json and angular cli version.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: De Giovanni ***@***.***>
Sent: Thursday, April 21, 2022 8:17:28 PM
To: rxweb/rxweb ***@***.***>
Cc: Ajay Ojha ***@***.***>; Mention ***@***.***>
Subject: Re: [rxweb/rxweb] Angular 13 - reactive-form-validators ivy enabled (Issue #542)
I have created a new NX Angular 13 project with the latest Jest version and The test fails when creating a RxFormGroup. I seen a discussion about this error, I don't know there are a fix about this:
==> TypeError: Class constructor FormControl cannot be invoked without 'new'
—
Reply to this email directly, view it on GitHub<#542 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE3SS3UJDCJP6JXOMW4QU3TVGFTABANCNFSM5H5O2V3A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Please check with 2.1.7 version, I will close this ticket once I get an update from anyone of you. |
@ajayojha, And this package is still not ivy compatible |
Same issue "@rxweb/reactive-form-validators": "^2.1.7", |
I can confirm that 2.1.7 still throws this warning. |
We also had no luck updating to 2.1.7 and it currently blocks our Angular 13 - Upgrade. @ajayojha "target": "es2017",
"module": "es2020",
"lib": ["es2020", "dom"] We've also removed Don't know if it helps in this case but I guess upgrading the |
Nevermind. With the decision to create a PR I've played around with the settings. Anyway, it would be great to have a better contribution guide with steps how to build locally. I've ended up performing a |
@sahofmann Thanks for sharing the detailed information, I will update it here in the next two days, Mostly will fix this issue. Would be happy to see the PR, if you have time and work on this :). |
Yeah, as soon as I find time I'll provide a PR. Meanwhile I've found the issue why it never switched to ivy compilation mode. You have to do a production build. So running
|
Still getting Didn't found a way to add |
So ... after all 2 PRs: The first one fixes Ivy compilation but still throws The second one bumps the whole client-side project to Angular 13 with all it's shiny advantages. With this PR all errors are gone and compiles perfectly. But you still have to check if it works for your RxWeb environment. It's yours to choose ;) (or abandon both) |
Thank You So Much @sahofmann, I really appreciate your efforts in fixing the issue, Soon, The PR will be reviewed and merged the same :). |
@sahofmann if you have a sample code of producing this issue "throws Class constructor FormControl", then please share the same. |
This error has gone with the Angular 13 update you've already merged. Thanks for that. If you still need a sample let me know. |
Hey, will there be a new release with this fix? |
Any update on an upcoming version for this fix? |
if anyone tests this build copy in their machine, if it's working then I release the same. I appreciate @sahofmann work on this issue but I was facing some issues with my machine for creating a build copy. I would request if anyone spare some time to test with this build copy. |
Any update on this by chance? |
@mikerentmeister I have attached a build copy of the package in my previous comment, would be great if you/someone else check in the local environment, if everything works well then would be happy to release the same :). |
@ajayojha I tried to run the command Do you mind to publish a release candidate version on NPM so that we can easily install and test? Thanks for the help! |
@jgomesmv I have released the rc version, please check the same. |
@ajayojha I have tested rc version:
Good job! Everything works as expected! Thanks a lot for the help! I have checked this branches package.json: In all of them you are using angular 12. Are there any plans to support angular 13, 14 and 15? Cheers! |
@jgomesmv Thanks for the update. I am going to create a separate branch for angular 13 & above version support and the release version starts with 1X.X.X.... |
I am closing this ticket as the issue has been resolved and the stable version (13.0.0) has been released. Thanks to everyone who has helped with this issue :). |
Hi, first of all, sorry that my PR caused more issues than it solved. |
Description
Now that Angular 13 is released and view engine is deprecated, does this team have any plans on updating reactive-form-validators to be built in at least partial ivy mode, in order to not need to run ngcc for this library? Currently ngcc is the only thing in the way of my team being able to update to yarn 2 with PnP.
Describe the solution you'd like
reactive-form-validators library built with "compilationMode": "partial" and "enableIvy": true
The text was updated successfully, but these errors were encountered: