Skip to content

Error while creating a custom plugin #3468

Answered by imhoffd
dhavalkshah asked this question in Q&A
Discussion options

You must be logged in to vote

@dhavalkshah Luckily that's just a warning. It's safe to ignore. If you'd like to get rid of it, you can change target in tsconfig.json to es2017 (that's what we're doing in Capacitor 3 anyway, see #3320).

FYI dist/plugin.js is the bundled version of your plugin (exported to window) and dist/esm is for Capacitor apps that use a bundler and import your plugin.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dhavalkshah
Comment options

@imhoffd
Comment options

Answer selected by dhavalkshah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants