-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot require 'https' module in Web Worker #5918
Comments
Did you enable node worker command line option? |
Yes. Here is my "command line option": |
I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.22.3.
index.html:
task.js(using the example in https://nodejs.org/api/https.html):
|
This is fixed in git and will be available in the next nightly build. |
please try this build: https://dl.nwjs.io/live-build/05-19-2017/nw22-772064c-90fd209-2d0e985-5b5a0ad/v0.22.4/ |
Great! It works. |
Trying to use 'https' module in Web Worker causes error:
...
message: "Uncaught Error: No such module: js_stream",
filename: "_stream_wrap.js"
...
const https = require('https');
Environment:
The text was updated successfully, but these errors were encountered: