Answer the question
In order to leave comments, you need to log in
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:
I thought it was in the nightmare.js library , but this error also appears when loading another socket.io
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 questionAsk a Question
731 491 924 answers to any question