I am trying to register a user using nestjs . when I tried to register my user I have an error like this. I spend hours to find out what went wrong, but I ca;t found a thing.I really need your help with this one.
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
As discussed on our Discord, you forgot to add the
@Injectable() decorator to your
AuthenticaitonService class, which made the DI service not understand that something was supposed to be injected and thus caused the error