durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
328 stars 62 forks source link

Can't get it to work in VSCode extension #113

Closed obfuscatedgenerated closed 2 years ago

obfuscatedgenerated commented 2 years ago

Hi, I'm trying to get this to work in a VSCode extension. VSCode extensions don't tend to play nice with native modules, especically since it changes electron version often.

When I load the extension on the latest VSCode, I get this:

The module {my project path}\node_modules\winax\build\Release\node_activex.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 103. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`)..

Any guidance on how to rebuild successfully? I've tried using electron-rebuild but couldn't get it to do anything.

obfuscatedgenerated commented 2 years ago

Managed to resolve this using prebuildify