wcjs-ugly-demo icon indicating copy to clipboard operation
wcjs-ugly-demo copied to clipboard

Uncaught Error: The specified module could not be found.

Open CHQ930731 opened this issue 7 years ago • 10 comments

My environment is win10(x64)+node(v8.9.0)+npm(v5.5.1)+nw.js(nwjs-sdk-v0.23.7-win-ia32)+WebChimera.js_v0.2.7_nw_v0.23.7_VLC_v2.2.4_ia32_win.

I have tried wcjs-ugly-demo for several times,the following error occurred.

Uncaught Error: The specified module could not be found. \?\E:\webchimeraAndNwjs\wcjs-ugly-demo\node_modules\webchimera.js\build\WebChimera.js.node at Object.Module._extensions..node (module.js:732:18) at Module.load (module.js:598:32) at tryModuleLoad (module.js:538:12) at Function.Module._load (module.js:530:3) at Module.require (module.js:629:17) at require (internal/module.js:11:18) at bindings (E:\webchimeraAndNwjs\wcjs-ugly-demo\node_modules\bindings\bindings.js:76:44) at Object. (E:\webchimeraAndNwjs\wcjs-ugly-demo\node_modules\webchimera.js\index.js:1:99) at Module._compile (module.js:685:30) at Object.Module._extensions..js (module.js:702:10)

CHQ930731 avatar Dec 20 '17 06:12 CHQ930731

I see two possible reasons:

  1. you really don't have E:\webchimeraAndNwjs\wcjs-ugly-demo\node_modules\webchimera.js\build\WebChimera.js.node
  2. you don't have some dependency dll

RSATom avatar Dec 20 '17 07:12 RSATom

well,

  1. i have "WebChimera.js.node" in the file path on my system.
  2. i have put files in "WebChimera.js_v0.2.7_nw_v0.23.7_VLC_v2.2.4_ia32_win." in "E:\webchimeraAndNwjs\wcjs-ugly-demo\node_modules\webchimera.js\build\Release"

CHQ930731 avatar Dec 21 '17 03:12 CHQ930731

It's possible WebChimera.js just not compatible with latest NW.js versions. I didn't try it long time.

RSATom avatar Dec 21 '17 04:12 RSATom

thanks a lot. I' ll try later.

CHQ930731 avatar Dec 21 '17 04:12 CHQ930731

thanks a lot. I' ll try later.

hi, has the problem been solved? I meet the same situation I check the WebChimera.js.node use dependency, an error detected

image

calabashdad avatar Jan 16 '19 04:01 calabashdad

@calabashdad, did you build WebChimera.js yourself or get prebuilt one?

RSATom avatar Jan 16 '19 05:01 RSATom

@calabashdad, did you build WebChimera.js yourself or get prebuilt one?

hi,awesome project! I build WebChimera.js myself according your tutorial some environmental params: windows 10 32bit; vlc 3.0.6; electron v4.0.1 ; npm 6.5.0

calabashdad avatar Jan 16 '19 06:01 calabashdad

You should check (in dependancy walker) if it miss some else direct dependancy for webchimera.js.node except node.dll (just collapse all elements except top level WEBCHIMERA.JS.NODE, and look if it has some more modules with yellow icons with question symbol). If it not - then try add your Electron folder (where node.dll resides) to PATH and check with Dependancy Walker again if it will have some errors. Other option could be some compatibility issue with latest Electron, so you could build against older Electron version and check if it will work.

RSATom avatar Jan 16 '19 07:01 RSATom

@calabashdad, it looks like it's compatibility issue with Electron v4: https://github.com/cmake-js/cmake-js/issues/153

RSATom avatar Jan 16 '19 15:01 RSATom

@calabashdad, it looks like it's compatibility issue with Electron v4: cmake-js/cmake-js#153

@RSATom Thanks for your valuable suggestion! i try it with electron v4 but compile error, later i'll check the compilation environment and process again, if successful, I will give a reply here, thanks again

calabashdad avatar Jan 17 '19 01:01 calabashdad