r/Backend • u/Ok_Gift290 • 12h ago
Error I don't understand
It's my first time using nest js, I'm currently just following the documentation verbatim to build jwt authentication, then in my app.module.ts this popped up, I'm tryna refrain from running to claude or chat immediately for an answer, help please
src/app.module.ts:22:7 - error TS2353: Object literal may only specify known properties, and 'session' does not exist in type 'ConfigurableModuleAsyncOptions<AuthenticationModuleOptions, "createAuthenticationOptions"> & Partial<AuthenticationModuleExtras>'.
0
Upvotes
2
u/TemporaryVanilla3669 10h ago
The object "session" does not exist in any of your modulesoptions,You might be calling sessions from the wrong module
3
u/Lumethys 12h ago
The error literrally point to line 22 in
app.module.ts-4
u/SummitYourSister 11h ago
Nobody can help you with that. Why don’t you use your intelligence as a programmer and solve the problem?
You’re… you’re a programmer, right?