trik / capacitor-zeroconf

Cordova ZeroConf Plugin
7 stars 7 forks source link

Use it with Capacitor v6 #3

Closed Aymkdn closed 1 month ago

Aymkdn commented 1 month ago

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:

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"

Aymkdn commented 1 month ago

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