-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with connecting ioredis library #23
Comments
Full error text:Type 'Redis' is not assignable to type 'RedisClient | Redis | Cluster | undefined'. Type 'import("c:/Users/rrost/Documents/JS/train/graphql/node_modules/@types/ioredis/index").Redis' is not assignable to type 'import("c:/Users/rrost/Documents/JS/train/graphql/node_modules/@types/connect-redis/node_modules/@types/ioredis/index").Redis'. Types of property 'hset' are incompatible. Type 'OverloadedKeyedHashCommand' is not assignable to type 'OverloadedKeyedHashCommand'. Types of parameters 'cb' and 'cb' are incompatible. Types of parameters 'res' and 'res' are incompatible. Type 'number' is not assignable to type '"OK"'.ts(2322) index.d.ts(28, 13): The expected type comes from property 'client' which is declared here on type 'RedisStoreOptions' |
@rrachinskiy Привет, нашел в чем проблема? У меня сейчас та же проблема. |
I using as any for now👌. I know this is bad idea |
Hey @rrachinskiy, can you send a screen with your context file maybe ? 👌🏻 |
It's seems like this issue has been fixed. Yesterday I tried to use express-session on my new pet project. I am not using GraphQL. It's simple REST API. Now it is working without any type. Check here . |
Hello Ben. Thanks for your Graphql TS video.
I repeat everything you do on it.
I catch an error when trying to replace redis library to ioredis.
Can you help me to resolve this problem please?
The text was updated successfully, but these errors were encountered: