open() is not a function
mikkimichaelis opened this issue · 1 comments
mikkimichaelis commented
Following the example from npm runkit https://npm.runkit.com/capacitor-email-composer and modifying the code to be as such:
require("@capacitor/core/package.json"); // @capacitor/core is a peer dependency.
var capacitorEmailComposer = require("capacitor-email-composer")
capacitorEmailComposer.open({})
I receive the error 'TypeError: capacitorEmailComposer.open is not a function’
When importing and using like this:
import { EmailComposerPlugin } from 'capacitor-email-composer';
EmailComposerPlugin.open({})
I receive the same error 'TypeError: capacitorEmailComposer.open is not a function’
Thank you for your help.
EinfachHans commented
This plugin has no web implementation. Please open a new issue if you have problems in an native environment.