With my current project I run into the following error message when creating a worker:
ERROR Error: The V8 platform used by this instance of Node does not support creating Workers
I found a variety of posts here on SO with comments like these: It was added in nodejs v10.5.0.
Does anyone know whats going on?
$ process.versions
ares:'1.16.0'
brotli:'1.0.7'
chrome:'85.0.4183.39'
electron:'10.0.0-beta.14'
http_parser:'2.9.3'
icu:'67.1'
llhttp:'2.0.4'
modules:'82'
napi:'5'
nghttp2:'1.41.0'
node:'12.16.3'
openssl:'1.1.0'
unicode:'13.0'
main.ts
win = new BrowserWindow({
webPreferences: {
nodeIntegrationInWorker: true,
nodeIntegration: true,
allowRunningInsecureContent: (serve) ? true : false,
},
});