Skip to content

The specified procedure could not be found #243

@RichardFoss

Description

@RichardFoss

I can't resolve this issue on Windows. My code works fine on my Macbook. The error appears when the require is executed:
mdns = require('mdns');
I have the Bonjour SDK installed (and restarted Windows), and the environment variable is in place. There is an indication that the problem appears at line 35 of dns_sd.js where the following code appears:

if (ex.code === 'MODULE_NOT_FOUND') {
module.exports = require(product(default_dir));
console.warn('dns_sd: failed to load requested ', buildtype, 'build. using', default_dir, 'instead.');
} else {
throw ex;
}

I find it hard to figure what the issue might be. I have rebuilt the mdns module using nw-gyp from the mdns directory. I am using node.js v12.12.0 and npm v6.11.3
Possibly a missing dll?


Uncaught Error: The specified procedure could not be found.
\?\D:\Git-Repos\ImmerGo-MOTU\immergo-motu\node_modules\mdns\build\Release\dns_sd_bindings.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1048:18)
at Module.load (internal/modules/cjs/loader.js:836:32)
at Function.Module._load (internal/modules/cjs/loader.js:748:14)
at Module.require (internal/modules/cjs/loader.js:873:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\Git-Repos\ImmerGo-MOTU\immergo-motu\node_modules\mdns\lib\dns_sd.js:24:20)
at Module._compile (internal/modules/cjs/loader.js:980:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1003:10)
at Module.load (internal/modules/cjs/loader.js:836:32)
at Function.Module._load (internal/modules/cjs/loader.js:748:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions