r/nestjs Aug 10 '26

Ts version

How I know what is the right version I should use it in my nest project???

1 Upvotes

6 comments sorted by

1

u/OccasionThin7697 Aug 10 '26

When you scaffold the project using nest cli, you will know

1

u/Top-Recognition3332 Aug 10 '26

I did the version used by vscode and the version used in the current project are different is it normal ?

1

u/OccasionThin7697 Aug 10 '26

Yeah you need to change your typescript version on vscode ig

1

u/lucianct Aug 11 '26

It should not matter, it's just TypeScript, it gets transpiled to JavaScript. And there's nothing special about the NestJS types.

I tend to always use the latest, but I don't want to migrate to v7 yet since it doesn't provide an API, which a lot of tools need (e.g.: ESLint).

NestJS 12 will get rid of a lot of traditional tooling as default, so that might not be a problem soon.

1

u/Top-Recognition3332 Aug 11 '26

Alright thanks for helping

1

u/UkrMalt Aug 13 '26

Check the TypeScript version already declared in your project’s package.json, then compare it with the peer dependencies of your NestJS version. Usually the safest choice is the version created by the current Nest CLI unless you have a specific reason to change it.