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

11 comments sorted by

3

u/TemporaryVanilla3669 7d ago

The object "session" does not exist in any of your modulesoptions,You might be calling sessions from the wrong module

2

u/Ok_Gift290 7d 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

5

u/Lumethys 7d ago

The error literrally point to line 22 in app.module.ts

1

u/StephenHawkinguss 5d ago

Ask the damn AI

-4

u/SummitYourSister 7d 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?

5

u/chuch1234 7d ago

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

0

u/StephenHawkinguss 5d ago

stfu u stupid as much as PO

2

u/mkinkela 7d ago

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

0

u/StephenHawkinguss 5d ago

He's Indian, which is why he's not capable.