Open RedBoardDev opened 1 month ago
I think this was introduced in https://github.com/fastify/fastify-passport/pull/1198.
A workaround for you could be to use the skipLibCheck
option.
cc @robwalkerco @simoneb - I have absolutely no idea how to type this.
Yeah, but I want to avoid skipLibCheck
to have a nice CI !
But for now I'm using it yes
The Session and Secure-session packages are used for some of the types, but they are dev dependencies https://github.com/fastify/fastify-passport/blob/223d097ce47b62210054714959c7007a0b518471/package.json#L48-L49 This lets the types work great when developing, but causes the error when checking the types when the dev dependencies are not installed, such as in a production CI environment.
I'll have to do some research tomorrow on the best way to handle this scenario, as I guess the preference would be to avoid making them dependencies.
I've tried to find a nice way to make this work well, and have yet to find a great solution.
I have managed to make it work with some type changes in @fastify/session
and @fastify/secure-session
, but that breaks the existing SessionData
typing :(
I will continue to investigate when I next get some time
I'm also having this issue which is preventing me from updating...
Prerequisites
Fastify version
5.0.0
Plugin version
3.0.1
Node.js version
20.17.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
UX425QA.306
Description
I have a typescript compilation error in the typing module. When I run ‘tsc --noEmit’, I get this error:
And all my dependencies from package.json:
tsconfig.json:
tsconfig.base.json:
Don't hesitate if you see any inconsistencies in these files too !
Link to code that reproduces the bug
No response
Expected Behavior
No response