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
Packaged app contains jobs folder as well, here's the message i got back.
{"level":"INFO","time":"2023-12-06T07:58:43.652Z","pid":244224,"hostname":"tuxedo","msg":"Worker for job \"iride_sync\" online"}
(node:244224) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `electron-iwcassa --trace-warnings ...` to show where the warning was created)
/tmp/.mount_ElectrYsomfo/resources/jobs/iride_sync.js:1
import dbSync from '../dbSync';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1185:20)
at Module._compile (node:internal/modules/cjs/loader:1227:27)
at Object..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13327)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
at MessagePort.<anonymous> (node:internal/main/worker_thread:164:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:737:20)
{
name: 'iride_sync',
err: /tmp/.mount_ElectrYsomfo/resources/jobs/iride_sync.js:1
import dbSync from '../dbSync';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1185:20)
at Module._compile (node:internal/modules/cjs/loader:1227:27)
at Object..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13327)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
at MessagePort.<anonymous> (node:internal/main/worker_thread:164:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:737:20)
}
Error: Worker for job "iride_sync" exited with code 1
at Worker.<anonymous> (/tmp/.mount_ElectrYsomfo/resources/app.asar/dist/main/webpack:/node_modules/bree/src/index.js:473:13)
at Worker.emit (node:events:513:28)
at Worker.[kOnExit] (node:internal/worker:288:10)
at Worker.<anonymous> (node:internal/worker:208:20)
I tried to use, ts files with defaultextension, and ts-worker, but things are not working as expected anyway.
Anybody can help me to find a way? If more infos are needed just ask!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, i'm trying to run a background job in electron app using electron-react-boilerplate.
I can't get it woking on production build, here's what i tried.
Packaged app contains jobs folder as well, here's the message i got back.
I tried to use, ts files with defaultextension, and ts-worker, but things are not working as expected anyway.
Anybody can help me to find a way? If more infos are needed just ask!
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions