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

@capacitor-community/stripe not working on web with Ionic/react #328

Open
1 task
Jayrajrodage opened this issue Dec 9, 2023 · 5 comments
Open
1 task
Labels
enhancement New feature or request

Comments

@Jayrajrodage
Copy link

Jayrajrodage commented Dec 9, 2023

Platform

  • Web

Describe the bug
I am getting this error "Failed to fetch dynamically imported module": and this warning "Capacitor WebPlugin "Stripe" config object was deprecated in v3 and will be removed in v4."

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Screenshot (126)
Screenshot (127)

Additional context
i Initialized the plugin as per the official '@capacitor-community/stripe' docs https://stripe.capacitorjs.jp/docs/react/
versions
"@capacitor/core": "^5.5.1",
"@capacitor-community/stripe": "^5.4.1",
"@ionic/react": "^7.5.5",

Please help me resolve this issue @rdlabo

@coachaaron
Copy link

Any update here? Having similar issue....

@toddaa
Copy link

toddaa commented Mar 19, 2024

Same exact problem here. Any insight would be much appreciated.

@rdlabo
Copy link
Member

rdlabo commented Mar 26, 2024

Currently, vite is not supported; either stop using vite or use the Stripe object without reactProvider.

import { Stripe } from '@capacitor-community/stripe';

@rdlabo rdlabo closed this as completed Mar 26, 2024
@rdlabo rdlabo reopened this Mar 26, 2024
@rdlabo
Copy link
Member

rdlabo commented Mar 26, 2024

Hi, @hideokamoto . Do we plan to support Vite in the React Provider, wondering if it should be Deprecated or not?
Tell us what you think.

Note: React with using the Stripe object will work fine.

@hideokamoto
Copy link
Contributor

I would be very happy if we could use this provider component in the React application built by Vite. However, I'm not well-versed in developing custom components for the Vite environment.

Therefore, we would appreciate get more time for working on this issue. It's possible that we need to gather more detailed context to better comprehend what is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants