Skip to content

Capacitor 3 #9

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

Open
Linknpay opened this issue May 1, 2021 · 4 comments
Open

Capacitor 3 #9

Linknpay opened this issue May 1, 2021 · 4 comments

Comments

@Linknpay
Copy link

Linknpay commented May 1, 2021

Hello,

Are you going to update this plugin to adapt it to Capacitor v3 ?

Thank you

@Linknpay
Copy link
Author

Linknpay commented May 1, 2021

hello,
there is an issue building capacitor 3 with this plugin :

Error: node_modules/@capacitor/core/types/definitions-internal.d.ts:15:18 - error TS2430: Interface 'CapacitorInstance' incorrectly extends interface 'CapacitorGlobal'.
  Types of property 'Plugins' are incompatible.
    Type '{ [pluginName: string]: { [prop: string]: any; }; }' is missing the following properties from type 'PluginRegistry': FacebookAnalytics

Solution :
in file : node_modules/capacitor-plugin-facebook-analytics/dist/esm/definitions.d.ts
You should delete lines 1 to 5

@Linknpay
Copy link
Author

Hi, capacitor has launched their final release 3.0.0
Could you update the plugin because we are obtaining this error :

Error: node_modules/@capacitor/core/types/definitions-internal.d.ts:16:18 - error TS2430: Interface 'CapacitorInstance' incorrectly extends interface 'CapacitorGlobal'.
  Types of property 'Plugins' are incompatible.
    Type '{ [pluginName: string]: { [prop: string]: any; }; }' is missing the following properties from type 'PluginRegistry': FacebookAnalytics

@rgustavsson
Copy link

@Linknpay Do you have facebook analytics working with Cap 3?

@Linknpay
Copy link
Author

Hi guys try this plugin for compatibility with capacitor 5 since it is not maintained anymore here --> https://www.npmjs.com/package/capacitor-facebook-events

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

Successfully merging a pull request may close this issue.

2 participants