You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Darwin NY-GTaverasMBA 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
Subsystem: worker_threads
The following code produces this error:
ERROR:
import { workerData } from 'worker_threads';
^^^^^^^^^^
SyntaxError: The requested module 'worker_threads' does not provide an export named 'workerData'
main.mjs:
import{Worker}from'worker_threads';constworker=newWorker('./worker.js',{workerData: 'Hello from main thread'});
The text was updated successfully, but these errors were encountered:
addaleax
added
esm
Issues and PRs related to the ECMAScript Modules implementation.
worker
Issues and PRs related to Worker support.
labels
Jan 28, 2019
The following code produces this error:
ERROR:
main.mjs
:worker.mjs
:COMMAND:
node --experimental-modules main.mjs
The text was updated successfully, but these errors were encountered: