-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with usage in Electron on windows #158
Comments
I think it's the same issue than this one. The error message at least seems to be the same. |
Not exactly :) when running in electron, you need to native compile mdns and use node-gyp to recompile it with the Atom header. Then go in your project folder, and in you node_modules/mdns folder. So you should have something like : Then follow the guidelines here : https://github.com/atom/electron/blob/master/docs/tutorial/using-native-node-modules.md and run : And then you'll be happy ! |
Yeah, my bad, I upgraded to win10 and node-gyp broke. I ran
If I try to run the program I do get a different error, namely:
|
@sebakerckhof Have you tried rebuilding mdns? It's having trouble with the precompiled binary supplied in the package. Try:
|
When I try to use this package in Electron on windows (maybe also other platforms, didn't test it) I get the following error:
Here's an example repository: https://github.com/sebakerckhof/electron-problem
Just requiring the module already gives me this error ( https://github.com/sebakerckhof/electron-problem/blob/master/src/preload.js#L1 ).
The text was updated successfully, but these errors were encountered: