-
Notifications
You must be signed in to change notification settings - Fork 443
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
Can't build for electron #81
Comments
EDIT: Mistaken here |
@jimmybaker im sorry i seem to have been mistaken here.. these errors are because of the new V8 updates that causes this to fail to build. ignore my previous comment |
What is the fix? |
Still don't know. Haven't made any progress with it. If anyone has a solution, would love to see it here. |
It seems these methods are no longer available in the version of v8 that electron uses now. Here's an issue in node regarding the removed methods: nodejs/node#2977 |
So I've got a temporary work around for this. The code that's causing this all to fail is not essential if you're using node version 4 or greater. So I've forked the repo and made a branch that simply removes the offending code. Since the code doesn't provide any features for node 4 users then it can be safely removed. To get this library working with electron or nw projects running on node version 4, install it with:
Once this is installed you can run electron-rebuild or the node-gyp rebuild for nw projects. |
also added in https://www.npmjs.com/package/printer . now you can install directly. |
I'm trying to use this module in an electron project http://electron.atom.io/
Electron provides a few methods for rebuilding native modules which are listed here: http://electron.atom.io/docs/v0.32.0/tutorial/using-native-node-modules/
I get the same result no matter how I try to rebuild it.
The text was updated successfully, but these errors were encountered: