I needed this plugin for my project, however it's only compatible with Capacitor v5 while I'm using Capacitor v6.
To make it work, I simply did the below:
npm install capacitor-zeroconf --force
cd .\node_modules\capacitor-zeroconf\
npx @capacitor/plugin-migration-v5-to-v6@latest
By doing it, it was then working with my app.
Note: when trying to install another package with npm, I received an error saying capacitor-zeroconf has a peerDepencies with "@capacitor/core":"^5.0.0", so I looked into my package-lock.json and I changed this reference with "6.0.0"
I needed this plugin for my project, however it's only compatible with Capacitor v5 while I'm using Capacitor v6.
To make it work, I simply did the below:
npm install capacitor-zeroconf --force
cd .\node_modules\capacitor-zeroconf\
npx @capacitor/plugin-migration-v5-to-v6@latest
By doing it, it was then working with my app.
Note: when trying to install another package with
npm
, I received an error sayingcapacitor-zeroconf
has apeerDepencies
with"@capacitor/core":"^5.0.0"
, so I looked into mypackage-lock.json
and I changed this reference with"6.0.0"