sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
783 stars 161 forks source link

Getting version conflict in Electron. #143

Open cyrilgupta opened 2 years ago

cyrilgupta commented 2 years ago

Hi!

I can run this in node, but when I try to run it in Electron I am getting the error below. Already tried npm rebuild and it's not resolving the issue.

Any clues?

The issue is below

UnhandledPromiseRejectionWarning: Error: The module '..\client\node_modules\ref-wchar-napi\node_modules\iconv\build\Release\iconv.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 106. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).

jove0610 commented 2 years ago

Try using electron-rebuild

npm install --save-dev electron-rebuild

.\node_modules\.bin\electron-rebuild.cmd

txj-xyz commented 2 years ago

Seems that github actions randomly decides to not build the natives.

Not really sure whats going on but is there a way we can patch this?