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
up bullmq deps to 1.89.2, don't compile, error below
in code I create redisConn and pass it to Worker
const redisConn = new Redis(config.WORKER_REDISURL); // from ioredis
const worker = new Worker(`${config.WORKER_QUEUE}`, async job => {
return await doWork(job);
}, {
connection: redisConn,
});
error:
worker/app.ts:133:5 - error TS2322: Type 'Redis' is not assignable to type 'ConnectionOptions'.
Type 'Redis' is missing the following properties from type 'Redis': stream, isCluster, connector, reconnectTimeout, and 140 more.
133 connection: redisConn,
~~~~~~~~~~
node_modules/bullmq/dist/esm/interfaces/queue-options.d.ts:14:5
14 connection?: ConnectionOptions;
~~~~~~~~~~
The expected type comes from property 'connection' which is declared here on type 'WorkerOptions'
worker/app.ts:141:5 - error TS2322: Type 'Redis' is not assignable to type 'ConnectionOptions'.
141 connection: redisConn.duplicate(),
~~~~~~~~~~
node_modules/bullmq/dist/esm/interfaces/queue-options.d.ts:14:5
14 connection?: ConnectionOptions;
~~~~~~~~~~
The expected type comes from property 'connection' which is declared here on type 'QueueSchedulerOptions'
Found 2 errors in the same file, starting at: worker/app.ts:133
The text was updated successfully, but these errors were encountered:
up bullmq deps to 1.89.2, don't compile, error below
in code I create redisConn and pass it to Worker
error:
The text was updated successfully, but these errors were encountered: