Skip to content
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

[BUG]: error TS2305: Module '"@stripe/stripe-js"' has no exported member 'StripeElementsOptions'. #432

Closed
abhi-ideal opened this issue Mar 21, 2023 · 6 comments · Fixed by #436
Labels
bug Something isn't working

Comments

@abhi-ideal
Copy link

What happened?

My Angular build creation is not working with the new version 1.50.0

package.json
"@stripe/stripe-js": "^1.46.0",

Error:

Error: projects/auth/src/app/auth/components/stripe-cart/stripe-cart/stripe-cart.component.ts:14:3 - error TS2305: Module '"@stripe/stripe-js"' has no exported member 'StripeElementsOptions'.
14 StripeElementsOptions,
~~~~~~~~~~~~~~~~~~~~~
Error: projects/marketplace/src/app/cart/components/stripe-cart/stripe-cart.component.ts:13:3 - error TS2305: Module '"@stripe/stripe-js"' has no exported member 'StripeElementsOptions'.
13 StripeElementsOptions,

Environment

No response

Reproduction

No response

@abhi-ideal abhi-ideal added the bug Something isn't working label Mar 21, 2023
@mohit-uniyal-dev
Copy link

"Update types for deferred Intents #427" commit done on stripe:master branch
updated StripeElementsOptions to BaseStripeElementsOptions
this was done 4 days ago that's why 1.50.0 has this issue, I am using 1.49.0 to avoid this, till it is fixed.

@FCHAPLIN
Copy link

Same situation here, got this error on an Angular 14 application using ngx-stripe on a production pipeline.
Seems to be a breaking change in a minor version.

@jd-carroll
Copy link

Hey @alexoser-stripe your change #427 introduced a breaking change.

Could you please give guidance on what library implementors should do. Will this be rolled back or should we migrate StripeElementsOptions to StripeElementsOptionsClientSecret or .... ?

There seems to be a lot changing in that PR

@bmathews-stripe
Copy link
Contributor

Hi all, we're getting this fixed and will have a release out shortly. In the mean time, use 1.49.0. Thanks!

@bmathews-stripe
Copy link
Contributor

This is resolved in v1.51.0.

Thanks for the report.

@abhi-ideal
Copy link
Author

Thanks for your updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants