-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
I use electron v6.1.5 and node.js v12.4.0 and electron-edge-js have a problem about Cannot find module edge_nativeclr #74
Comments
You shouldn't pack the native modules. |
Can you be more specific on how to make it work? I got same issue, searched around, can see other get same issue but could not find a solution. |
Take a look at #39 |
I have made some progress and would like to share for those facing the same issue. |
Hello, thank you very much for your answer, it was very helpful to me
Can you be more specific on how to make it work?Thanks! |
Sorry, for some reasons the text is trimmed. It should be |
I'll share my case in case anyone is a beginner like me. I have this electron-angular app and it seems that you can't use node modules related to the system or electron inside angular (like fs, remote, ..etc), and this was what got me this error as electron would unpack it into So, you CAN'T do this inside angular project
You need to install
Notes:
Conclusion: You just need to find a way to connect to electron's main process from inside the framework correctly |
// vue.config.js
module.export = {
pluginOptions: {
electronBuilder: {
externals:["electron-edge-js"]
}
} Thanks :). |
Win10, no problem. |
Packaging instructions added to README, all issues should be resolved. |
Electron v6.1.5
Node v12.4.0
vue/cli 4.0.5
electron-edge-js v12.8.1
windows 10 x64.
The error occurs when I require the electron-edge-js module.
var edge = require('electron-edge-js');
Uncaught Error: Cannot find module 'D:\workspace\ws_workspace\electron-vue-scaffold\node_modules\electron\dist\resources\electron.asar\renderer\native\win32\x64\12.4.0\edge_nativeclr' at webpackEmptyContext (eval at ./node_modules/electron-edge-js/lib sync recursive (app.js:1002), <anonymous>:2:10) at eval (edge.js?3e21:62) at Object../node_modules/electron-edge-js/lib/edge.js (chunk-vendors.js:7494) at __webpack_require__ (app.js:791) at fn (app.js:151) at eval (index.js:6) at Module../src/dll/index.js (app.js:1143) at __webpack_require__ (app.js:791) at fn (app.js:151) at eval (main.js:17)
The text was updated successfully, but these errors were encountered: