Git Product home page Git Product logo

Comments (5)

stphnnnn avatar stphnnnn commented on July 17, 2024

I don't think this is Ionic related. I'm getting the same error with a simple NodeJS project.

from bonjour.

jackie-d avatar jackie-d commented on July 17, 2024

I'm getting the same error on ionic 2 typescript with [email protected] using

import Bonjour from 'bonjour';
and then

Bonjour.find({ type: 'http' }, function (service) {
        console.log('Found an HTTP server:', service)
      })

from bonjour.

jackie-d avatar jackie-d commented on July 17, 2024

Found an alternative here at ZeroConf Ionic Plugin, I would have preferred this "bonjour" module but I see no other alternative to go to Zeroconf.

from bonjour.

soundprojects avatar soundprojects commented on July 17, 2024

The module dgram is not available in client side Ionic code. Ionic runs on cordova and not on the node js system which means that this package cannot be used in Ionic for the moment. The Zeroconf Ionic plugin is a great alternative, though it is only suited for ios and android.

When programming with the zeroconf plugin, you can use safari to debug when you run on an ios device. Find the 'developer' menu in settings and you can see your device listed there.

When you can't run on a device but in a browser, look up 'mock' to 'imitate' a service being added so you can develop the things you need.

from bonjour.

lbnlrnt avatar lbnlrnt commented on July 17, 2024

Hi,

I went into the dgram folder and it is pretty empty (just a readme) :

This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

You may adopt this package by contacting [email protected] and requesting the name.

So as suggested I wrote to npm, and they answered :

Thanks for reaching out!

The dgram package on npm was empty and didn't do anything, however many packages mistakenly depended on it. npm, Inc. has taken ownership of it.

It's also a built-in Node module. If you've depended on dgram, you can safely remove it from your package dependencies.

You can learn more about dgram in Node here: https://nodejs.org/api/dgram.html

And so I went to the web site suggested but it doesn't seems it was empty actually....

Whatever, I tried to comment out things with dgram ( in multicast-dns package ) or tweek it but it seems it was useful at some points.

SO, so, i don't know what to do with that haha. I'll go to multicast-dns see what may be done.

from bonjour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.