Skip to content

Cannot get capacitor plugins to be recognized as implimented #17500

Discussion options

You must be logged in to vote

From my answer on Discord:

It works fine for me, here's the steps I took:

$ npm init quasar
# created an app-vite v2 JS app
$ npx quasar mode add capacitor
$ cd src-capacitor
$ npm add @capacitor/preferences
# also add some code in IndexPage that imports and uses the plugin
$ cd ..
$ npx quasar dev -m capacitor -T android
# generates the web assets
# updates the relevant files
# runs cap sync android

The OP confirmed a clean project works. Afterward, they said it worked on their project after restarting things.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yusufkandemir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants