Skip to content
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

import_connect_redis.default() is not a function #419

Closed
farhadzaidi opened this issue Dec 19, 2024 · 1 comment
Closed

import_connect_redis.default() is not a function #419

farhadzaidi opened this issue Dec 19, 2024 · 1 comment

Comments

@farhadzaidi
Copy link

I'm importing the module like so
import connectRedis from 'connect-redis';

and then I try
const RedisStore = connectRedis(session);

which gives me the error
TypeError: (0 , import_connect_redis.default) is not a function

When I use version 5.0.0, the error goes away. I'm using typscript btw, if that makes a difference.

@wavded
Copy link
Collaborator

wavded commented Dec 30, 2024

Hey @farhadzaidi , see https://github.com/tj/connect-redis?tab=readme-ov-file#importing for current version import instructions.

@wavded wavded closed this as completed Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants