durs / node-activex

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

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

Closed GoodZivi closed 1 year ago

GoodZivi commented 1 year ago

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

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

GoodZivi commented 1 year ago

https://www.electronjs.org/docs/latest/tutorial/using-native-node-modules