electron / electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
https://electronjs.org
MIT License
113.65k stars 15.29k forks source link

[Bug]: A JavaScript error occurred in the main process, Error: The specified module could not be found. #28181

Closed alokmahor closed 3 years ago

alokmahor commented 3 years ago

Preflight Checklist

Electron Version

11.1.0

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

My electron app which is using native module obs-studio-node should work

Actual Behavior

On some computer electron app is working but on some computer I am getting error

Testcase Gist URL

No response

A JavaScript error occurred in the main process

Uncaught Exception:
Error: The specified module could not be found.
\\?C:\some\path\My-Electron-App\node_modules\obs-studio-node\obs_studio_client.node

I have checked it. C:\some\path\My-Electron-App\node_modules\obs-studio-node\obs_studio_client.node file is present.

nornagon commented 3 years ago

Thanks for reaching out!

The issues tracker is used for feature requests and bug reports, so you will probably have better luck with this question at one of the links at the project's Community page -- in particular, be sure to give the Electron Discord server a try.

I hope this helps!

alokmahor commented 3 years ago

@nornagon Yes I posted this on Discord but did not get any reply.

iceyxx222 commented 8 months ago

Have you solved this problem?I have the same problem。