question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A module is not found on Windows

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stroborobocommented, Mar 26, 2017

@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.

0reactions
kamyarghajarcommented, Mar 26, 2017

Thanks @stroborobo

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found