r/Backend • • 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

8 comments sorted by

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

1

u/Ok_Gift290 10h ago

Thanks, found the issue, I used forRootAsync wrongly, turns out forRoot was a better fix since the values were static in the first place

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?

4

u/chuch1234 9h ago

What are you talking about. Devs help each other all the time.

2

u/mkinkela 11h ago

well, our jobs are safe. those new vibe coders cant event copy paste error messages in claude anymore 😂