Prerequisites
Fastify version
4.24.3
Plugin version
10.6.0
Node.js version
18.17.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
14.0
Description
Trying to make this plugin work with the latest version of connect-redis will fail since express-session is a peer dependency of it since version 7.0.0. RedisStore is extending Store from express-session and also using the SessionData type from it as you can see here: https://github.com/tj/connect-redis/blob/master/index.ts
This leads to the following issue when trying to run a project without express-session installed:
Error: Cannot find module 'express-session'
This can be fixed by downgrading the connect-redis version to v6.1.3
Steps to Reproduce
- Set up a project with Fastify, @fastify/session and
connect-redis
- Run the project
- You should get the error message mentioned above
Expected Behavior
No response
Prerequisites
Fastify version
4.24.3
Plugin version
10.6.0
Node.js version
18.17.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
14.0
Description
Trying to make this plugin work with the latest version of
connect-rediswill fail sinceexpress-sessionis a peer dependency of it since version7.0.0. RedisStore is extendingStorefromexpress-sessionand also using theSessionDatatype from it as you can see here: https://github.com/tj/connect-redis/blob/master/index.tsThis leads to the following issue when trying to run a project without
express-sessioninstalled:This can be fixed by downgrading the
connect-redisversion tov6.1.3Steps to Reproduce
connect-redisExpected Behavior
No response