#Can someone explain me this error,

24 messages · Page 1 of 1 (latest)

sturdy thistle
#

It seems that your Service is not imported in your Module, make sure you import it correctly in the right module as they suggest you in the potential solution. It should look like this :
@Module({
imports: [
JwtModule.registerAsync({
useFactory: () => ({
secret: process.env.JWT_SECRET,
signOptions: { expiresIn: process.env.JWT_EXPIRATION },
}),
}),
AuthService,
],

#

Well my bad, it's not like this ahah

queen totem
#

ooh was just gonna tell u this does not work

sturdy thistle
#

You should import the right module using UsersApiRepository

queen totem
#

i am confused this is what i read online all the time but i do not have a UsersApiRepository
i use it like this

sturdy thistle
#

If you ctrl+shift+F and search the word UsersApiRepository you don't find anything ?

queen totem
#

no i thought of that to

sturdy thistle
#

I don't know where it comes from

queen totem
#

me neither this is why i am confused about online explanations

sturdy thistle
#

I think it comes from the Repository<User> declaration

#

You maybe need to import your typeorm module

#

Like this but with User entity

queen totem
#

does not work

sturdy thistle
#

Okay, sorry then I really don't know this librairy, maybe look a typeorm tutorial and try to make sure you do all the steps correctly and else I hope anyone more qualify will be able to help you

queen totem
#

thanks for trying to help me

vale stream
#

Is there anyway you can push this to a repo or something and I could take a look? I've been using Nest on and off for a year and need to get hands on.

obtuse onyx
#

By the way, there is a separate channel for NestJS . You can post there if you have more questions. It took me like 10 seconds to realize this wasn't Angular🤣

queen totem
#

oh mybad

#

i am sorry

#

@obtuse onyx i do not have that channel?

winged yoke
#

The Channel #752850988586631168 is archived (check #about-libraries-and-technologies ). I suggest you to ask this question in a NestJs forum

queen totem
#

oh okey thanks

winged yoke
#

Check this #partner-directory message