A module is not found on Windows
See original GitHub issueI have packaged my project with electron 1.5.0 and The packaged app works fine on macOS but on windows the same packaged app, in a js file it can not use require
from node js module
to find something like this:
const ab_service = require('../../../common/services/ab_service')
and on windows the console show this error:
Uncaught Error: Cannot find module '../../../common/services/ab_service'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (\\Mac\Home\Desktop\APP-win32-x64\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at file://mac/Home/Desktop/APP-win32-x64/resources/app.asar/src/renderer/modules/main/main.js:3:29
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Module Not Found Error in Python 3.6 on windows command ...
In PyCharm everything is just working fine. But when I try to open the file "module2.py" from Windows10 command prompt I get ModuleNotFoundError...
Read more >ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >FIX: “The specified module could not be found” in Windows 11
How to Fix “The specified module could not be found” in Windows 11? · Scan Your Computer for Malware · Run an SFC...
Read more >The error “The specified module could not be found”
Boot your computer into Safe Mode and open Task Manager > In the Processes tab, select the program encountering the specified module could...
Read more >How To Fix The specified module could not be found
Fixes for The specified module could not be found · Run the SFC scan · Update your device drivers · Run a virus...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@malept @KamyarGhajar This is an issue with Parallels’ shared folders, if you copy the output to local disk it’ll work. Visual Studio for example also has some problems if you’re working in shared folders, so this is not an electron-packager issue.
Thanks @stroborobo