-
Notifications
You must be signed in to change notification settings - Fork 29
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
Context not initialized on root path when using setGlobalPrefix
#92
Comments
What's quite awkward is that the project has already been launched, and the local hassle I've been dealing with is completely ineffective |
Hi, it seems strange to me that NX would break the library. I have been working on a project managed by NX before and we used I will look at your reproduction in the morning. |
As it turns out, this is neither a problem with NX, nor with You can read more about the issue in this thread, while the problem you're encountering is specifically described in this comment. The problem is that with a global prefix (e.g. In your application, you can fix this in the following ways (until Nest fixes the issue):
Hopefully, you can fix your issue and move forward with your project! |
setGlobalPrefix
Ah ah, oh Maiga When I woke up in the morning and opened GitHub to see your analysis, I suddenly realized.. After testing, it is indeed the case. Looking back at the process of discovering this problem again, I feel a bit embarrassed:
OKOKOK, in fact, I usually don't directly do business logic for GlobalPrefix, just for testing. Unexpectedly, this test almost surprised me. Thank you, thank you very much for your answer. I can finally let go of my heart that has been hanging in suspense for the past two days. |
nrwl/nx#19842
Edit by @Papooch: Copied and edited form linked issue:
Current Behavior
Expected Behavior
I hope Nestjs-cls can be used normally in Nest of nx
Steps to Reproduce
Both of the above two projects were exclusively, and only nestjs-cls were introduced in app.module.ts, and getId using ClsService in app.controller.ts was deleted by Console, since the input of nx projects was always undefined.
Nx Report
Package Manager Version
pnpm 8.5.1
Operating System
The text was updated successfully, but these errors were encountered: