durs / node-activex

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

How to rebuild for node 22.0.0? #135

Open yg-i opened 7 months ago

yg-i commented 7 months ago

The error message I'm getting when trying to use it with node version 22:

Error: The module '\\?\C:\@CS\js\nd\node_modules\.pnpm\winax@3.4.2\node_modules\winax\build\Release\node_activex.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 120. This version of Node.js requires
NODE_MODULE_VERSION 127. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

image

durs commented 7 months ago

try the new winax@3.5.1 fix

yg-i commented 7 months ago

Worked like a charm!