bullmq
bullmq copied to clipboard
[Bug]: Error handling child message
Version
v4.7.3
Platform
NodeJS
What happened?
- It gives
Error handling child message
when run the transpilled code. (pnpm build && node dist/index.js) - It works with
tsx
with it's esbuild setup. Checkpnpm dev:tsx
- It fails with @swc-node/register/esm and ts-node also.
pnpm dev
.
To reproduce https://github.com/iamchathu/bullmq-typescript-express.git
How to reproduce.
https://github.com/iamchathu/bullmq-typescript-express.git
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Seems there is a module type specifier in Worker API which is not exposed but the bullmq worker
const worker = new Worker(new URL('./worker.js', import.meta.url), {
type: 'module',
})
Is there any update on this or work arounds for this?
Hey @iamchathu, did you find any solution/workaround for this? It's been pretty hard to debug this so far 😕
With worker threads enabled, the job file path seemed to require a different syntax on Windows (anti-slashes) to avoid this error. The actual message and stack could be logged here. This did not happen on other systems with the same project.
@xavier-villelegier I haven't found any fix for this yet :(