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 load native extension when using asar #424
Comments
So... do you use electron-builder or electron-packager — electron-userland/electron-builder#580 ? It seems it is your app issue, not packaging tool issue. |
@develar it's pretty obvious from the link that this person uses electron-packager, not electron-builder. @codehz if you use |
@malept
I think |
Try electron-packager 7.2.0 and use |
Also, with electron-packager 7.3.0, don't specify |
I have used below(7.3.0)
(same as before)
(Not work, same as before)
The last one does work, but it does not used asar... |
I'm not seeing a difference between the second and third command. |
Sorry, I have removed |
Yes, for electron-packager 7.2.0 and below, it is required to use This seems like a problem with the |
I can confirm that is an Asar issue not electron-packager issue, I am using asar programatically and having the same behaviour. Also I am having this issue on windows 7 but not on windows 10 |
Please note that this same error can be thrown if dll dependencies are not found for the native node module. Details are in last comment on |
After much searching and reading documentation --asar.unpack=*.{node,dll} on the electron-packager cli did the trick for me. Make sure you are rebuilding sharp as required before packaging. |
ELECTRON_ASAR.js:158
Uncaught Error: The specified module could not be found.
?\C:\Users\AppData\Local\Temp.tmp.node
And I can found it in this path..
I think the
\\?\
is unnecessary..It appears only when I use this option --asar=true
7.3.0
electron-packager . "VizMusicPlayer" --out=dist/win --platform=win32 --arch=x64 --version=1.2.7 --icon=build/icon.ico --asar=true
1.2.7
Windows 10 x64
Windows x64
(RUNTIME, Electron Renderer Process)
https://github.com/VizMusicPlayer/VizMusicPlayer
The text was updated successfully, but these errors were encountered: