durs / node-activex

Node.JS Implementaion of ActiveXObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module './build/Release/node_avtivex.node'

GoodZivi opened this issue · comments

Error: Cannot find module './build/Release/node_activex.node'
Require stack:

  • F:\Project\Test\node_modules\winax\activex.js
  • F:\Project\Test\node_modules\winax\index.js
  • F:\Project\Test\utils\test.js
  • F:\Project\Test\electron\preload.js
    at Module._resolveFilename (VM97 loader:940:15)
    at i._resolveFilename (VM119 renderer_init:33:1095)
    at Module._load (VM97 loader:785:27)
    at c._load (VM116 asar_bundle:5:13343)
    at i._load (VM119 renderer_init:33:356)
    at Module.require (VM97 loader:1012:19)
    at require (VM96 helpers:102:18)
    at Object. (VM249 F:\Project\Pac…ax\activex.js:1:187)
    at Object. (VM249 F:\Project\Pac…inax\activex.js:7:3)
    at Module._compile (VM97 loader:1118:14)

i have solved the problem ‘complied against different nodejs version’. But then a new problem arose, what should i do?

I have noticed the same problem, and the solution is to find activex.js change the first line to 'var ActiveX = module.exports = require('./build/Release/node_activex.node');'.
But that's what the file is, it doesn't work.

node: v19.9.0
node-gyp: v9.3.1
electron: 19.1.1
python: 3.10.9
system edition: Windows 11 Pro 21H2