ITADN

import_connect_redis.default() is not a function

#419Closedfarhadzaidi 创建于 2024-12-19
F
farhadzaidicommented
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.
关闭于 2024-12-30 1 条评论