-
Notifications
You must be signed in to change notification settings - Fork 80
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
Comments
Any update here? Having similar issue.... |
Same exact problem here. Any insight would be much appreciated. |
Currently, vite is not supported; either stop using vite or use the Stripe object without reactProvider.
|
Hi, @hideokamoto . Do we plan to support Vite in the React Provider, wondering if it should be Deprecated or not? Note: React with using the Stripe object will work fine. |
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. |
Hello On this quote, "Note: React with using the Stripe object will work fine." Can you elaborate what setup do you have with react? |
I would appreciate guidance on that as well. Thank you for the plugin! |
Unfortunately at the moment I think it's very difficult (or impossible) to make this plugin work with vite without updates in the stripe-pwa-elements. Tried couple things (to no avail):
Some additional information that may be useful: I had this exact same issue with ionic-team/pwa-elements earlier on (which made upgrade to Vite impossible), and they were able to make their package work with Vite in their 3.2.0 release (which is why I gave updating back to Vite another shot). Seeing that that specific change didn't do much more than upgrade the stencil version, might be worth trying to update the stencil version used by stripe-pwa-elements? Unfortunately I ran out of time and ultimately had to revert to webpack for the time being, which is a shame because Vite's DX is a huge improvement over webpack / CRA. If I have more time at some point, I could try and see if the package upgrade does the trick. |
Platform
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
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
The text was updated successfully, but these errors were encountered: