durs / node-activex

Node.JS Implementaion of ActiveXObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get it to work in VSCode extension

obfuscatedgenerated opened this issue · comments

commented

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.

commented

Managed to resolve this using prebuildify