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

Unable to import components in v2.0.3 #37

Closed
utyfua opened this issue Sep 25, 2023 · 2 comments
Closed

Unable to import components in v2.0.3 #37

utyfua opened this issue Sep 25, 2023 · 2 comments

Comments

@utyfua
Copy link

utyfua commented Sep 25, 2023

Hello

How to use v2? I am trying to update from v1.4.0 to v2.0.3 but I unable to import components.

My code:

import {
  ConnectComponentsProvider,
  ConnectPayments,
  ConnectPayouts
} from '@stripe/react-connect-js';

Errors:

webpack compiled with 2 errors
ERROR in src/<...>/StripeConnect.tsx:6:3
TS2305: Module '"@stripe/react-connect-js"' has no exported member 'ConnectPayments'.
    4 | import {
    5 |   ConnectComponentsProvider,
  > 6 |   ConnectPayments,
      |   ^^^^^^^^^^^^^^^
    7 |   ConnectPayouts
    8 | } from '@stripe/react-connect-js';

ERROR in src/<...>/StripeConnect.tsx:7:3
TS2305: Module '"@stripe/react-connect-js"' has no exported member 'ConnectPayouts'.
     5 |   ConnectComponentsProvider,
     6 |   ConnectPayments,
  >  7 |   ConnectPayouts
       |   ^^^^^^^^^^^^^^
     8 | } from '@stripe/react-connect-js';
@utyfua utyfua changed the title Unable to import components Unable to import components in v2.0.3 Sep 25, 2023
@mertindervish
Copy link
Contributor

Hi!

I had the same issue and I don't know the reason but as far as I see from the repo, the beta components like ConnectPayments and ConnectPayouts are removed from the stable releases.

I checked the docs where it is mentioned to install beta versions like this:

npm install --save @stripe/connect-js@beta
npm install --save @stripe/react-connect-js@beta

Doing so fixed my problem. I hope it will help you too

@utyfua
Copy link
Author

utyfua commented Sep 25, 2023

Hello

Thank you once again!

I was following this repository only and even forgot about the external documentation.

Have a nice day!

@utyfua utyfua closed this as completed Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants