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,
],
#Can someone explain me this error,
24 messages · Page 1 of 1 (latest)
ooh was just gonna tell u this does not work
You should import the right module using UsersApiRepository
i am confused this is what i read online all the time but i do not have a UsersApiRepository
i use it like this
If you ctrl+shift+F and search the word UsersApiRepository you don't find anything ?
I don't know where it comes from
me neither this is why i am confused about online explanations
I think it comes from the Repository<User> declaration
You maybe need to import your typeorm module
Like this but with User entity
does not work
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
thanks for trying to help me
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.
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🤣
The Channel #752850988586631168 is archived (check #about-libraries-and-technologies ). I suggest you to ask this question in a NestJs forum
oh okey thanks
Check this #partner-directory message