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

plugin is not working as it is refering to latest Capacitor version #72

Closed
wandexer opened this issue May 20, 2021 · 3 comments
Closed

Comments

@wandexer
Copy link

Describe the bug
The plugin cannot be used after installing due to this error:
Interface 'CapacitorInstance' incorrectly extends interface 'CapacitorGlobal'.
[ng] Types of property 'Plugins' are incompatible.
[ng] Property 'Stripe' is missing in type '{ [pluginName: string]: { [prop: string]: any; }; }' but required in type 'PluginRegistry'.
[ng] 16 export interface CapacitorInstance extends CapacitorGlobal {
[ng] ~~~~~~~~~~~~~~~~~
[ng] ../../node_modules/@capacitor-community/stripe/dist/esm/definitions.d.ts:3:9
[ng] 3 Stripe: StripePlugin;
[ng] ~~~~~~
[ng] 'Stripe' is declared here.

The root cause I suppose is the dependency to the "latest" version of capacitor, which is now 3 since it got released. And apparently the mentioned interface got changed.

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin
  2. Try to start the application

Expected behavior
Should run ;-)

Additional context
I would propose not to refer to the 'latest' version of a dependency in package.json but being deterministic instead (in this case ^3). And it would be great to have a version compatible with Cap 3. :-)

@wandexer wandexer changed the title plugin is incompatible with Capacitor 3 plugin is not working as it is refering to latest Capacitor version May 20, 2021
@danielehrhardt
Copy link

#74

@rdlabo
Copy link
Member

rdlabo commented Jul 14, 2021

Thanks for issue!
Today this plugin of v3 is released. This not compatible with v1. All APIs have been revamped. So I will close this issue. If you still have the same problem, please create a new Issue. Thank you.

@rdlabo rdlabo closed this as completed Jul 14, 2021
@rdlabo
Copy link
Member

rdlabo commented Jan 19, 2022

@wandexer @danielehrhardt Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022.
#145
Thanks.

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

3 participants