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

electron in Cannot find module nodejavabridge_bindings.node #605

Open
code565 opened this issue Feb 27, 2025 · 0 comments
Open

electron in Cannot find module nodejavabridge_bindings.node #605

code565 opened this issue Feb 27, 2025 · 0 comments

Comments

@code565
Copy link

code565 commented Feb 27, 2025

system:macOs;
node: 16.14.2;
electron: 24.1.2;
node-java: 0.14.0;
this is my code
const java = require("java");
INFO Launching Electron...
App threw an error during load
Error: Cannot find module '/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/build/Release/nodejavabridge_bindings.node'
at webpackEmptyContext (webpack:///./node_modules/java/lib_sync?:2:10)
at eval (webpack:///./node_modules/java/lib/nodeJavaBridge.js?:21:77)
at ./node_modules/java/lib/nodeJavaBridge.js (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:2514:1)
at webpack_require (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:20:30)
at eval (webpack:///./node_modules/java/index.js?:2:18)
at ./node_modules/java/index.js (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:2491:1)
at webpack_require (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:20:30)
at eval (webpack:///./src/electron/java/index.js?:4:14)
at ./src/electron/java/index.js (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:3947:1)
at webpack_require (/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/index.js:20:30)
(node:67053) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/benben/Desktop/code/oldcode/szqyCode/szqy/qinashan/qianshan-electron/dist_electron/package.json' of 'background.js'. Please either fix that or report it to the module author
(Use Electron --trace-deprecation ... to show where the warning was created)

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