-
Notifications
You must be signed in to change notification settings - Fork 117
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
Nest can't resolve dependencies of the JwtAuthenticationGuard after upgrade 8.1.0 to 8.1.1 #823
Comments
For a quick workaround, use Thanks for reporting it it. I'll make sure the test suite gets updated with a case to cover this |
@jmcdo29 I tried, but it still doesn't work. I went back to 8.1.0. I'm just learning. Thanks. |
@jmcdo29 I looked at Then, I added |
Okay, yeah, that tracks. I was using a single module setup for testing this. You would need to use the Turns out, I needed to add |
@jmcdo29 in a normal situation (without this issue), should I always import |
Only if
Otherwise, it shouldn't really be necessary, but it is at the moment because of the change |
Following nest docs (https://docs.nestjs.com/security/authentication) i found this error too after implementing local strategy (after "Implementing Passport local" topic and before "Built-in Passport Guards"). Downgrading to 8.1.0 all things works fine. I'm start learning nestjs and I don't now how to colaborate sending PR. Maybe this repo needs an update, or maybe nestjs docs needs to be updated. |
@cleytoncoro if you'd read the above comments in the issue, and the linked PR, you'd realize this already has a fix, and there's solutions in the thread already. Kamil will most likely publish a patch or minor update for this once the PR is merged. |
Fixed |
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
No response
Versions
No response
Describe the regression
After upgrade nest, in special
@nestjs/passport
, it started to throw an exception. Going back to 8.1.0 it works again.The error
Minimum reproduction code
Look at my project https://github.com/rvieceli/wanago.io-nestjs
Expected behavior
It doesn't depend on AuthModuleOptions
Other
The text was updated successfully, but these errors were encountered: