durs / node-activex

Node.JS Implementaion of ActiveXObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to rebuild for node 22.0.0?

yg-i opened this issue · comments

commented

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

try the new winax@3.5.1 fix

commented

Worked like a charm!