Closed dchappelle closed 2 years ago
For 2 I had this issue reported, but will close it in favor of yours since itโs more complete.
but have in mind that we released capacitor 3 back in may, with an improved plugin generator, and we are already planning capacitor 4, so fixing capacitor 2 issues/docs is not a priority at the moment, we encourage you to upgrade to capacitor 3.
I would go to capacitor v3 but I saw the following known issue in the Quasar docs
HTTPS devserver (through quasar.conf.js > devServer > https: true) is not yet supported. If you are using Capacitor plugins that depend on it, itโs better to stay with Capacitor v2 for the moment.
We are using https testing locally and it didn't look like this was supported?
as you can see in your other issue, is not working fine on Capacitor 2 neither
touchรฉ
Going to close as won't do as we have launched Capacitor 4 recently and nobody should be using Capacitor 2 anymore nor creating plugins for it, so those docs won't be fixed.
I've sent a PR to quasar to add Capacitor 4 support, but they have not merged it.
Bug Report
Capacitor Version
Platform(s)
All
Current Behavior
There are issues in the current V2 Creating Capacitor Plugins documentation.
1.) If the MyPlugin is created following the directions (even without making any changes), the npm run build will fail with the following errors
To fix this I had to add the entry
"skipLibCheck": true
to the plugin's tsconfig.json file2.) Concerning the Local Testing section.
npm install plugin-name
tries to install an official version of the plugin and results in 404 errors. Instead I found the v3 documentation for Local Testing (v3) worked i.e., no linking and just doingnpm install ../path/to/echo
3.) Concerning the Usage section.
The following code is not valid JS code
Instead I had to use...
OR...
Expected Behavior
Documented process works without issues :)
Code Reproduction
This is using the code generated from Capacitor V2 - Creating Capacitor Plugins
Other Technical Details
npm --version
output: 6.14.15node --version
output: v14.17.6pod --version
output (iOS issues only): 1.9.2