Skip to content

fails to resolve redis type definitions #3130

@sapenlei

Description

@sapenlei

Description

When importing createClient from redis, the TypeScript language server fails to resolve type definitions, causing:

  1. Type information stuck in loading state: Type hints and IntelliSense for @redis remain in a perpetual loading state
  2. Cascading type resolution failure: This issue affects the entire project's type system, preventing:
    • Type information display for other libraries
    • Type information display for custom code
    • Type navigation (go to definition, find references)
    • Auto-completion and IntelliSense features
Image

Reproduction Steps

  1. Import createClient from redis:

    import { createClient } from "redis";
  2. Observe that:

    • Type information does not load
    • IDE shows loading spinner indefinitely
    • No IntelliSense/autocomplete appears
    • Type checking for the entire file/project becomes unresponsive

Note

Version 4 of the Redis client works without issues

Node.js Version

24.2.0

Redis Server Version

7.4.7

Node Redis Version

5.9.0

Platform

Darwin Kernel Version 25.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions