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
I'm using bullmq with Remix+Vite setup which enforces use of ESM in production. Let me know if you need actual reproduction or the problem description is enough.
Relevant log output
ReferenceError: __dirname is not defined
at readPackageJson (file:///<redacted>/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/esm/utils.js:192:14)
at RedisConnection.init (file:///<redacted>/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/esm/classes/redis-connection.js:151:29)
at new RedisConnection (file:///<redacted>/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/esm/classes/redis-connection.js:59:34)
at new QueueBase (file:///<redacted>/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/esm/classes/queue-base.js:35:27)
at new Queue2 (file:///<redacted>/node_modules/.pnpm/[email protected]/node_modules/bullmq/dist/esm/classes/queue.js:17:9)
at file:///<redacted>/packages/queue/src/<redacted>:9:37
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at ModuleLoader.import (node:internal/modules/esm/loader:475:24)
at run (/<redacted>/node_modules/.pnpm/@[email protected][email protected]/node_modules/@remix-run/serve/dist/cli.js:112:15)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version
v5.20.0
Platform
NodeJS
What happened?
__dirname
was added in this PR: #2822Related issue from the past: #2288
Downgrading to 5.19.1 works for me
How to reproduce.
I'm using bullmq with Remix+Vite setup which enforces use of ESM in production. Let me know if you need actual reproduction or the problem description is enough.
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: