Skip to content
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

active-win giving me an error right after installing and using sample code. #15

Closed
JacobWeisenburger opened this issue Sep 20, 2017 · 1 comment

Comments

@JacobWeisenburger
Copy link

I tried using this code in my electron app:

// In Renderer Process
const activeWin = remote.require('active-win');
activeWin().then(result => {
  console.log(result);
});

after installing active-win with this command:

$ npm install --save active-win

and I got this error:

Error: Could not call remote function ''. Check that the function signature is correct.
Underlying error: Cannot find module 'ffi'

Any suggestions on how to fix it?

@sindresorhus
Copy link
Owner

sindresorhus commented Sep 20, 2017

You might have to rebuild it using https://github.com/electron/electron-rebuild as this package depends on a native Node.js addon. If you're using electron-builder (which you really should, this should be handled for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants