Open beckend opened 1 year ago
I experience the same issue. additionally if i try to run the expose method in the worker script without importing it in the main thread, i get this error:
node:internal/event_target:1010
process.nextTick(() => { throw err; });
Error: expose() called in the master thread.
I experience the same issue with cjs if i put "type": "module"
in my package.json
it is impossible for me to remove "type": "module"
from my package.json because a plugin in my build chain relies on it so i am at the moment unable to use this package.
This is fixed in master branch by https://github.com/andywer/threads.js/pull/419 But we haven't see a new release includes this fix yet. What time is the 1.7.1 release planed to?