node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

Module '"../../redis/dist"' has no exported member 'RedisClient'.

Open BarAppTeam opened this issue 2 years ago • 1 comments

Hey, When I try to use the library I get the following error: Is there anything that can be done about it? Thanks in advance for the support.

image

Environment:

  • Node.js Version: v16.14.2
  • Redis Server Version: Redis server v=7.0.0 sha=00000000:0 malloc=libc bits=64 build=fa9ffba7836907da
  • Platform: MacOS 12.3.1

BarAppTeam avatar May 19 '22 12:05 BarAppTeam

I found this because I couldn't find how to properly type the return from createClient() in the docs. It looks like RedisClientType can be used.

import { RedisClientType } from 'redis';

mbystedt avatar Sep 21 '22 23:09 mbystedt