I facing difficulty in building executable file #95
Replies: 3 comments 4 replies
-
Have you read the docs? |
Beta Was this translation helpful? Give feedback.
-
yes I do, If something I have missed please guide me through it. |
Beta Was this translation helpful? Give feedback.
-
If your project is a single file, you can try adding the following code at the top of the file const { createRequire } = require('node:module'); ====================================== require(id) in the injected main script is not file based# Instead of relying on a file based require(), users can bundle their application into a standalone JavaScript file to inject into the executable. This also ensures a more deterministic dependency graph. However, if a file based require() is still needed, that can also be achieved: const { createRequire } = require('node:module'); |
Beta Was this translation helpful? Give feedback.
-
The project contains lot of node modules most of them are used for network communication
while injecting the blob, there are warnings
And I am new to this , any help or advices to rectify this is highly appreciable
Beta Was this translation helpful? Give feedback.
All reactions