Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoodZivi opened this issue May 5, 2023 · 1 comment
Closed

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

GoodZivi opened this issue May 5, 2023 · 1 comment

Comments

@GoodZivi
Copy link

GoodZivi commented May 5, 2023

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

@GoodZivi GoodZivi closed this as completed May 5, 2023
@GoodZivi
Copy link
Author

GoodZivi commented May 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant