#[NestJs + TypeORM] Unable to resolve signature of parameter decorator when called as an expression.

13 messages · Page 1 of 1 (latest)

crude pewter
#

Hi, I encountered a problem when I injected my repository into the service.
I have checked the post below and updated my packages to the latest version, but it is not working.
https://stackoverflow.com/questions/76003019/nestjs-type-error-argument-of-type-undefined-is-not-assignable-to-parameter

What should I do?

wicked void
#

looks like you're using an old version + a newer version of typescript

waxen steepleBOT
#

Suggestion for @crude pewter:
Please run the command npx -y @nestjs/cli info and paste the output in a code block. This will help us determine if there is a version issue in your packages and which version of nest we are triaging.

wicked void
#

looks fine

#

does that error appears on nest build as well?

crude pewter
#

no errors

wicked void
#
"typescript.tsdk": "node_modules/typescript/lib"

should fix that

#

at .vscode/settings.json

#

and restart VSC

crude pewter
#

Ok. I'll try it.

crude pewter
waxen steepleBOT
#

This post has been marked as resolved. :white_check_mark:
Please read through the conversation and resolution if you are having the same issue, and then re-open the post if you are still having trouble, providing as much extra information as possible.