Closed humanely closed 6 years ago
Sorry, don't know anything about Ionic. The dgram
module is part of NodeJS, see https://nodejs.org/api/dgram.html
@jollysean seems that you are trying to WebPack this module. mdns is not available in a browser environment because it doesn't expose any UDP sockets.
Check https://github.com/libp2p/js-libp2p-mdns/issues/5 for more context.
Folks,
Have you tried adding this to Ionic? I get this error. Possibly Ionic doesn't load all NPM. Error: Cannot find module "dgram" at webpackMissingModule (http://localhost:8100/build/vendor.js:172479:77) at Object. (http://localhost:8100/build/vendor.js:172479:159)
at Object. (http://localhost:8100/build/vendor.js:172659:30)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
at Object. (http://localhost:8100/build/vendor.js:172374:22)
at Object. (http://localhost:8100/build/vendor.js:172472:30)
at webpack_require (http://localhost:8100/build/vendor.js:55:30)
at Object.268 (http://localhost:8100/build/main.js:166:12)
at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
at Object.265 (http://localhost:8100/build/main.js:45:69)