W
W
Wasya UK2019-04-07 15:47:10
JavaScript
Wasya UK, 2019-04-07 15:47:10

Worker threads in Electron?

Installed the latest version of node, and tried to run the code with threads, but got the error " Cannot find module 'worker_threads' ". I went to the documentation https://electronjs.org/docs/tutorial/multithreading and entered

webPreferences: {
    nodeIntegrationInWorker: true
  }

but didn't help. In the latest version, you do not need to write an experimental worker. Where is the mistake?

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