-
Notifications
You must be signed in to change notification settings - Fork 47
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
Cannot find module '@fastify/session' or its corresponding type declarations #1217
Comments
I think this was introduced in #1198. cc @robwalkerco @simoneb - I have absolutely no idea how to type this. |
Yeah, but I want to avoid |
The Session and Secure-session packages are used for some of the types, but they are dev dependencies Lines 48 to 49 in 223d097
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 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
The text was updated successfully, but these errors were encountered: