Looking close at the error message, I did a import { Plugins, Share } from '@capacitor/core'
instead of the instructed: import { Share } from '@capacitor/share'
Is that correct? That seems to solve the install problem. However, when I execute the Share() code I get the following exception: Web Share API not available
The latter is capacitor 3 syntax. The first capacitor 2. Looking at your package.json you seem to be on 2, which aligns with your own observation on what works and doesn’t.
Does that syntax apply for all community plugins as well?
I want to use the sqlite plugin and am currently doing: import { CapacitorSQLite } from '@capacitor-community/sqlite'
but not sure if its correct as I get an error in Android Studio on startup:
java.lang.ClassCastException: class com.getcapacitor.community.database.sqlite.CapacitorSQLite cannot be cast to com.getcapacitor.Plugin
I checked the sample apps but could only find an import of type import { useStorageSQLite } from 'vue-data-storage-sqlite-hook/dist'. However that gives a compilation error.
I updated everything to v3 today. My src-capacitor/package.json right now: