#Import suggestion from @nestjs/mapped-types does not appear

1 messages · Page 1 of 1 (latest)

sleek venture
#

In nestjs version v10.4.15 why when I find import suggestion PickType from '@nestjs/mapped-types' it doesn't appear?
I have try in vscode and webstorm but the result is the same.
I try another version nestjs (v10.4.6) the suggestion is appear like in the photo.
If I write manually, the dependency is still can be found.

Is this problem come from my text editor? 🤔

dull kestrel
#

which version of @nestjs/mapped-types are you using?

#

the latest version is v2.0.6

#

if you're using NPM, you can run npm ls @nestjs/mapped-types in your project, to find that out

sleek venture
# dull kestrel if you're using NPM, you can run `npm ls @nestjs/mapped-types` in your project, ...

I ls the project folder and have this version
NodeJS Version : v20.15.0
NPM Version : 10.7.0
platform-express version : 10.4.15
schematics version : 10.2.3
throttler version : 6.3.0
passport version : 10.0.3
swagger version : 8.1.0
testing version : 10.4.15
common version : 10.4.15
config version : 3.3.0
core version : 10.4.15
jwt version : 10.2.0
cli version : 10.4.9
Nest CLI Version : 10.4.9
-- @nestjs/[email protected]
-- @nestjs/[email protected]

dull kestrel
#

are you getting any build error?

#

I just tested @nestjs/mapped-types v2.0.6

#

and I tested without having @nestjs/mapped-types as a hard dependency of the project. I tested via @nestjs/swagger v8.1.0 and it worked as well

#

so I've no clue on what is going on in your case, sorry