-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Providers doesn't exist in the current context #32
Comments
Hello @tsaqifrazin1, please, try the updated version |
Hi @alphamikle, Thanks for replying. I've updated the version but the error still exists |
Maybe this information help
this is my controller
this is my service
|
Hey @tsaqifrazin1! It seems that you did not use return await this.categoryService.getCategories({}); instead of return await this.categoryService.withTransaction(manager).getCategories({}); |
I'm sorry, I give you the wrong code.
my code is like this |
Hi , The same error was reproduced on my side, while it worked perfectly after an npm install it no longer worked
|
Same happens for me. Works fine locally but I got the same error on production environment |
As a temporary solution. Downgrade packages nest/common and nest/core to version 9.2.1:
Works for me |
Works for me too |
Hey this is a possible workaround but not a solution. With newer versions of NestJS we get the above error. Is there an updated solution on this topic? |
Hey @Fusix. I have very limited resources at the moment and cannot deal with the problem. If you can solve this issue with a PR, I will accept it. That way you will help yourself and others. |
i am also here reporting the same issue which i am still struggling with ! Any reliable fix ? |
thanks, also worked for me but would prefer better fix to be done if possible. for me, No downgrading but upgrading from "9.0.0" to "9.2.1" ! also wondering how on earth "@nestjs/common" and "@nestjs/core" had "9.0.0" version in the first place for project which was created 2 hours ago ! |
Having dug into this a little it seems that Nest is not finding the We have abandoned using |
The text was updated successfully, but these errors were encountered: