Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Support for packaging node native modules into executable #843

Closed
Vidhyaprabha opened this issue Feb 10, 2020 · 2 comments
Closed

Support for packaging node native modules into executable #843

Vidhyaprabha opened this issue Feb 10, 2020 · 2 comments
Labels

Comments

@Vidhyaprabha
Copy link

I am trying to build an executable out of my node application that uses native addons like edge-js, usb-detection, etc.

I get the following error on running the exe,

pkg/prelude/bootstrap.js:1185
      throw error;
      ^

Error: Cannot find module 'edge-js'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:634:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1287:46)
    at Function.Module._load (internal/modules/cjs/loader.js:560:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at Module.require (pkg/prelude/bootstrap.js:1166:31)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (D:\snapshot\mw-lab-agent@v0.0.1\controller\device\device-dll-handler.js:2:14)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Module._compile (pkg/prelude/bootstrap.js:1268:32)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)

The following PR could help resolve this as well,

#837

When can we expect a release with this?

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

@github-actions github-actions bot added the Stale label Mar 25, 2021
@github-actions
Copy link

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant