Closed alsoicode closed 4 years ago
I have been running it with ivy and angular 9 for months so it's not a raw issue with anuglar 9 sounds like your missing something in how your using the it.
I'm facing exactly the same issue on Angular 9. It worked well before.
Component using <ngx-stripe-card>
is loading dynamically.
@justvamp My use case is similar in that <ngx-stripe-card>
is in a fieldset
that is conditional with *ngIf
@paullryan My apologies, I accidentally opened this defect on your repo instead of the main ngx-stripe
repo: https://www.npmjs.com/package/ngx-stripe
Specifying version 1.2.2 of this repo versus 7.4.4 of the ngx-stripe repo works as expected for me, however there seems to be some confusion with the ngx-stripe's repo, because it points to yours as its homepage in npm, which is how I arrived here.
I made a local copy of <ngx-stripe-card>
component (StripeCardComponent
), used it and it works well now. The weird thing is that I didn't make any changes in the source code (except changing the selector, of course). So I have no idea of how to fix the issue in this repo.
Anyway this crutchy workaround may help someone until the issue is fixed.
@justvamp instaling version 1.2.2 of @nomadreservations/ngx-stripe
versus 7.4.4 of ngx-stripe
fixed the problem for me. I opened the same bug against the ngx-stripe
repo, which is under a different user, but shares this site in it's npm description, which is confusing.
I'm closing this issue since it doesn't exist on this repo, but on the ngx-stripe
repo instead.
BTW, there is still a peer dependency issue for Angular 9:
warning " > @nomadreservations/ngx-stripe@1.2.2" has incorrect peer dependency "@angular/common@~8.2.9". warning " > @nomadreservations/ngx-stripe@1.2.2" has incorrect peer dependency "@angular/core@~8.2.9".
After updating my project to Angular 9 and TypeScript 3.7.5, initializing the
<ngx-stripe-card>
component in my template is throwing this error:I have tried disabling the Ivy compiler in my tsconfig.app.json, but it results in the same error.