electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

Uncaught Error module counld not be found

Open StitchC opened this issue 7 years ago • 3 comments
trafficstars

throw this error after i run the "npm run build"

the error message: Uncaught Error: Cannot open D:\vipthink-teacher-pc\node_modules\agora-electron-sdk\build\Release\agora_node_ext.node: Error: The specified module could not be found. D:\vipthink-teacher-pc\node_modules\agora-electron-sdk\build\Release\agora_node_ext.node at Object. (renderer.js:5) at Object. (renderer.js:5) at f (renderer.js:1) at a (renderer.js:1) at Object. (renderer.js:5) at f (renderer.js:1) at a (renderer.js:1) at Object. (renderer.js:5) at f (renderer.js:1) at a (renderer.js:1)

StitchC avatar Jul 12 '18 03:07 StitchC

Make sure to have all the required node modules installed. In your case make sure that you have run the following command atleast once npm install agora-electron-sdk

thedevbob005 avatar Jul 12 '18 07:07 thedevbob005

i make sure i install this dependency correctly, and i use the native-ext-loader replace the node-loader to analysis my .node file. so the new error show

C:\Users\win 10\AppData\Local\Programs\vipthink\resources\app.asar\dist\electron\agora_node_ext.node: Error: The specified module could not be found.

i try to decompile the app.asar and i make sure that the "agora_node_ext.node" is inside

StitchC avatar Jul 12 '18 10:07 StitchC

webpack cant load .dll, u should native-ext-loader to excet .node, and set extraFiles to fold /agora-electron-sdk/build/Release

woshixiaoqianbi avatar Dec 06 '22 10:12 woshixiaoqianbi