M
M
Magneto9032020-07-10 14:04:43
JavaScript
Magneto903, 2020-07-10 14:04:43

How to use nw.js to build a nodejs application that depends on other modules?

I need to build a nodejs application that uses the nightmare.js library .
(I call this library via require())
The application ran smoothly via node.
After that, in order to build this application into an executable file, I used nw-builder .
The application is built, but the error is displayed in the console:
5f084aa5e5819799793214.png
I thought it was in the nightmare.js library , but this error also appears when loading another socket.io
5f084ab62c7bd353493661.png
library The error is caused by an attempt to initialize the module through require()
Dependencies are specified in package.json
Is it possible using the nw-builder librarybuild an application that will depend on other modules?
And if not possible, is there any library that allows this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question