trik/capacitor-zeroconf

Use it with Capacitor v6

Closed this issue · 1 comments

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"

Thanks to Marco for upading the plugin to make it compatible with Capacitor v6 :-)