Hello!
Currently running ioredis 5.3.2 and having this exact error coming up as #1632.
On the same environment type, esm.
Tried the suggested solutions {default as Redis} but the problem persists.
Is there something i missed?
// code
import { default as Redis } from 'ioredis';
import { SECRETS } from '../../environment.js';
export const redisConnection = new Redis(SECRETS.REDIS_URL);
// ERROR: This expression is not constructable.
// Type 'typeof import("/pathtorepo/node_modules/.pnpm/ioredis@5.3.2/node_modules/ioredis/built/index")' has no construct signatures.ts(2351)
Hello! Currently running ioredis 5.3.2 and having this exact error coming up as #1632.
On the same environment type, esm.
Tried the suggested solutions
{default as Redis}
but the problem persists.Is there something i missed?
tsconfig
no
@types/ioredis
installed